Home / Programming Questions / JAVA MCQs / Page 3
Dear candidates you will find MCQ questions of JAVA here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
M
Q. The smallest integer type is ......... and its size is ......... bits.
M
Q. Which is the Parent class of annotation class?
M
Q. Which of the following annotation is used to avoid execution of Junits?
M
Q. Size of float and double in Java is
M
Q. Determine output:
class A{ public static void main(String args[]){ int x; x = 10; if(x == 10){ int y = 20; System.out.print("x and y: "+ x + " " + y); y = x*2; } y = 100; System.out.print("x and y: " + x + " " + y); } }
M
Q. Using which annotation non visible or private method can be tested?
M
Q. Which one of the following is not an annotation used by Junit with Junit4?
M
Q. Which one of the following is not ID generating strategy using @GeneratedValue annotation?
Don't have account? Register here.