Tutorial Study Image

Java Online Quiz

Following quiz provides Multiple Choice Questions (MCQs) related to Java . You will have to read all the given answers and click over the correct answer. If you are not sure about the answer then you can check the answer using Show Answer button. You can use Next Quiz button to check new set of questions in the quiz.


Q 1 - _______ is an example for exit controlled loop?

Show Answer
 Answer is : Option C

Q 2 - Program execution begins from ________________ in java runtime system?

Show Answer
 Answer is : Option B

Q 3 - Instance variables are stored in ______________?

Show Answer
 Answer is : Option B

Q 4 - Which among the following comes under short data type?

Show Answer
 Answer is : Option C

Q 5 - The absence of _____ in a switch case statement results in fallthrough?

Show Answer
 Answer is : Option C

Q 6 - Which of the following is valid in java?

Show Answer
 Answer is : Option B

Q 7 - What will be the value stored in a double variable if it is not initialized?

Show Answer
 Answer is : Option C

Q 8 - System.out.println("She is the "Mother of Dragons"."); What will be the output of the above code snippet?

Show Answer
 Answer is : Option C

Q 9 - Protected member of a class will be _______ in the subclass ?

Show Answer
 Answer is : Option C

Q 10 - public static void main(String args[]) { int x; x = 1; { int y = 2; } System.out.println(x "+" y); } What will be the output of the code snippet?

Show Answer
 Answer is : Option D