What will be the output of the following code?
String s1 = "Java";
String s2 = s1.concat(" Programming");
System.out.println(s1);
Java
Java Programming
Compilation Error
Runtime Exception
This question is part of this quiz :
Java String Classes