A String is an object representing a sequence of characters. Strings are immutable in Java.
String s = "Hello";
s.concat(" World");
System.out.println(s); # Hello. The original String does not change.A String is an object representing a sequence of characters. Strings are immutable in Java.
String s = "Hello";
s.concat(" World");
System.out.println(s); # Hello. The original String does not change.