-
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 = " Mania";
System.out.println(str + " " + str2);
}
}
-
- Mania
- Interview
- Mania Interview
- Interview Mania
- None of these
Correct Option: D
Interview Mania