Explanation: final method cannot be overridden.
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
Explanation: final method cannot be overridden.
System.out.println(Math.round(2.5));
Explanation: Math.round rounds to nearest integer.
Explanation: Interfaces support multiple inheritance.
System.out.println(10 + "" + 10);
Explanation: String concatenation results in 1010.
Explanation: compareTo() compares lexicographically.
Explanation: 'new' keyword is used to create objects.