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 - Which among the following is False?

Show Answer
 Answer is : Option D

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

Show Answer
 Answer is : Option B

Q 3 - Which among the following is True while selecting an identifier?

Show Answer
 Answer is : Option D

Q 4 - Which among the following is part of switch case but is optional?

Show Answer
 Answer is : Option C

Q 5 - Which among the following checks whether two string are equal?

Show Answer
 Answer is : Option A

Q 6 - Which of the following keyword is used to "jump out" of a switch statement?

Show Answer
 Answer is : Option D

Q 7 - int i = 0; while (i < 5) { system.out.println("Hello"); } What will be the output of the above code snippet?

Show Answer
 Answer is : Option C

Q 8 - How is memory deallocated in java?

Show Answer
 Answer is : Option D

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

Show Answer
 Answer is : Option C

Q 10 - Local variables of a method are stored in?

Show Answer
 Answer is : Option A