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.length());
        }
    }

a) 9
b) 10
c) 11
d) 12

1 thought on “What will be the output of the following Java program?”

Leave a Comment