What is the output for the following lines of code? 1: String str = "Welcome"; 2: 3: str.concat(" to Java!"); 4: 5: System.out.println(str);
A) Strings are immutable, compilation error at line 3.
B) Strings are immutable, runtime exception at line 3.
C) Prints "Welcome".
D) Prints "Welcome to Java!".