1.

What is the output of this program?public class stringClass_Example { public static void main(String args[]) { String str = "Interview"; String str1 = "Mania"; String str2 = str; str2 = " world"; System.out.println(str + " " + str2); } }

A. Interview
B. Mania
C. Interview Mania
D. Mania Interview
E. None of these
Answer» D. Mania Interview


Discussion

No Comment Found

Related MCQs