Examveda

What will be the output of the following Java program?
class string_class 
{
    public static void main(String args[])
    {
        String obj = "I LIKE JAVA";   
        System.out.println(obj.charAt(3));
    } 
}

A. I

B. L

C. K

D. E

Answer: Option A


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java