Examveda

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

Answer: Option D


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java