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 of the following is the superclass of string class?

Show Answer
 Answer is : Option B

Q 2 - System.out.println("\"");. Outputs?

Show Answer
 Answer is : Option B

Q 3 - Char datatype literals are encoded as ______ in java?

Show Answer
 Answer is : Option A

Q 4 - Which string function is used to get the length of a string in java?

Show Answer
 Answer is : Option C

Q 5 - 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 6 - A java method signature consists of?

Show Answer
 Answer is : Option D

Q 7 - A composition relationship is also called?

Show Answer
 Answer is : Option B

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

Show Answer
 Answer is : Option B

Q 9 - String text = "Hello World". How to change the text to uppercase?

Show Answer
 Answer is : Option A

Q 10 - Which among the following is true?

Show Answer
 Answer is : Option A