Java MCQs - All MCQs
History, JVM, JRE and JDK, Variables, Data Types, Operators, Control Statements, Iterative Statements, Object Class, Naming conventions, Constructors
121. What is the correct output of this program ?
A. A less than B
B. A greater than B
C. Compile time error
View Answer
122. When the Java language project initiated?
A. June 1991
B. April 1995
C. Jan 1996
D. Feb 1997
View Answer
123. How many characteristics Object has?
A. 2
B. 3
C. 5
D. 1
View Answer
124. Which is the right naming convention for Constants in Java?
A. static final int day_package
B. static final int DAY_PACKAGE
C. static final int dayPackage
D. All of above
View Answer
125. JVM stands for ?
A. Java Development Kit
B. Java Virtual Machine
C. Java Run-time Environment
D. Java Verified Machine
View Answer
126. What is the correct output of this program ?
A. Run time Error
B. Compile time error
C. 70 69 68 67 66 65 64 63 62 61
D. 70 69 68 67 66 65 64 63 62
View Answer
127. What the naming convention should be for Constants in Java?
A. It should be in uppercase letters such as DAY, MONTH
B. If the name contains multiple words, it should be separated by an underscore(_) such as FINAL_DATE.
C. It may contain digits but not as the first letter
D. All of above
View Answer
128. Mobile Applications are known as
A. Distributed applications
B. Server side applications or Web applications
C. Desktop applications or Window-based applications
D. Android applications or Java ME applications
View Answer
129. What is the correct output of this program ?
A. 1 2 3 4 5 6 7 8 9 10
B. 0 1 2 3 4 5 6 7 8 9 10
C. 1 2 3 4 5 6 7 8 9 10 11
D. None of above
View Answer
130. What is an object in Java?
A. static reference
B. template or blueprint
C. instance of class
D. None of above
View Answer
