What is the output of the following program?
public class Main { public static void main(String args[]) { String s1 = "abc"; String s2 = "def"; String s3 = s1.concat(s2.toUpperCase()); System.out.println(s1 + s2 + s3); } }
abcdefabcdef
abcabcDEFDEF
abcdefabcDEF
C.
String objects are immutable and cannot be changed.