Home » JAVA Programming » Strings » Question
  1. What is the output of this program?

    public class string_class_Example
    {
    public static void main(String args[])
    {
    String obj = "I LIKE INTERVIEW MANIA";
    System.out.println(obj.length());
    }
    }
    1. 12
    2. 22
    3. 32
    4. 42
    5. 52
Correct Option: B

Output: 22



Your comments will be displayed only after manual approval.