Fill in the blanks questions in Java | Java Fill in the blanks

1. _________ invented Java Programming.

Answer: James Gosling

2. Java was developed by _____________

Answer: Sun Microsystem

3. Full form of JVM _____________

Answer: Java Virtual Machine

4. Java is a __________ language.

Answer: Platform Independent

5. Java language was initially called as _________

Answer: Oak

6. ________ is father of Java.

Answer: James Gosling

7. JDK stands for ______________.

Answer: Java Development Kit

8. JRE stands for _________.

Answer: Java Runtime Environment

9. javac is a Java _____________ which provides the keywords and syntax along with data types, operators that are used in Java.

Answer: compiler

10. JAR in Java stands for _______________.

Answer: Java Archive

11. _________ is a software that interprets Java bytecode.

Answer: Java Virtual Machine

12. Java compiler translates Java source code into _______.

Answer: bytecode

13. _____________ is at the core of Java.

Answer: Object Oriented Programming

14. Objects in java are _________

Answer: references

15. The extension of Java source code file is_________.

Answer: .java

16. The extension of a Java bytecode file is_________.

Answer:   .class

17. A .class file contains ___________

Answer: bytecodes

18. Upper case and lower case of the same letter are treated different in Java. Thus, Java is case _____________.

Answer: sensitive

19. ______ is used to compile, debug and execute the java programs.

Answer: JDK

20. The public static void main(String[] args) { … } method is the entry point of a ________ program.

Answer: Java

21. An integer variable in Java can be declared using the keyword _________.

Answer: int

22. Keywords are also called _____________ words.

Answer: reserved

23. Every statement in Java ends with ____________.

Answer: semicolon (;)

24. Java has a simple type, called ____________

Answer: boolean

25. The smallest integer type is _____________

Answer: byte

26. The most commonly used integer type is __________

Answer: int

27. In Java, the data type used to store characters is _________

Answer: char

28. Multiline comment is created using __________.

Answer: /*      */

29. An essential element of object-oriented programming is ___________

Answer: abstraction

30. The data, or variables defined within a class are called ___________

Answer: instance variable

31. The ________ operator is used to concatenate strings in Java.

Answer: +

32. __________ operator is used for logical “AND” operation.

Answer: &&

33. The operator that returns the remainder of the division of two operands is called _____________, its symbol is __________

Answer: modulus operator or remainder operator, %

34. An if statement allows for conditional execution of code based on a/an __________ expression.

Answer: boolean

35. The _________ keyword is used to exit a loop prematurely.

Answer: break

36. Java program processing always starts from __________ method 

Answer: main()

37. Every Java application has a _________ method that tells how and in what sequence other methods are used.

Answer: main()

38. ________ is the entry point of a program in Java.

Answer: main() method

39. An ___________ is a group of liked-typed variables that are referred to by a common name.

Answer: array

40. An array in Java is a collection of items of the _________ data type.

Answer: same

41. The length of an array can be accessed using the _________ method.

Answer: length

42. The __________ keyword is used to define a class in Java.

Answer: class

43. A class in Java starts with the keyword ___________followed by a valid identifier.

Answer: class

44. __________ class in Java is used to take input from the user.

Answer: Scanner

45. __________ method used to take a string as input in Java.

Answer: nextLine()

46. ___________ class contains the methods used to write in a file.

Answer: FileInputStream

47. The ___________ method is used to read data from a file in Java.

 Answer: readLine()

48. The ____ class is used to read data from a file in Java.

 Answer: FileReader

49. Java code needs to be compiled into __________ code before it can be executed.

Answer: bytecode

50. ____________ is used to find and fix bugs in the Java programs.

Answer: Java Debugger (JDB)

10 thoughts on “Fill in the blanks questions in Java | Java Fill in the blanks”

  1. Thanks I have recently been looking for info about this subject for a while and yours is the greatest I have discovered so far However what in regards to the bottom line Are you certain in regards to the supply

    Reply

Leave a Comment