Home / Programming MCQs / JAVA MCQs / Question
K
Q. What is the output of the following code snippet?
String s1 = “Hello”; int i = 2; System.out.println(sA)charAt(i));
The charAt method in Java returns the character at a specified index in a string. In this case, sA)charAt(2) returns ‘l’.
You must be Logged in to update hint/solution
A SWITCH fall through occurs in Java only in the absence of ___.
When a class is declared as final , then ____.
Which of the following statement is NOT true?
Choose the Java-Code below with a never-ending loop.
An abstract class has no use when it is extended by some other class.
Which method of object class can clone an object?
Automatic type conversion in Java takes place when
Discusssion
Login to discuss.