1
public class ConcatDemo {
2
public static void main(String[] args){
3
String firstString = "This is";
4
String secondString = " a concatenated string.";
5
String thirdString = firstString + secondString;
6
System.out.println(thirdString);
7
}
8
}
Stack
Stack frame
Literals
System.out.println(text)
+