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

    public class Result
    {
    public static void main(String args[])
    {
    String str1 = "Interview";
    String str2 = str1 + " Mania";
    System.out.println(str2);
    }
    }
    1. Interview Mania
    2. Interview
    3. Mania
    4. Mania Interview
    5. InterviewMania
Correct Option: A

Interview Mania



Your comments will be displayed only after manual approval.