Q36
What is the output of the following code snippet in Java? `System.out.println("Java".substring(0, 2));`
A.
J
B.
ava
C.
Compilation Error
D.
Ja
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board