Trying to get the hang of Java.
In the String doc, its mentioned :But in that case how come this works ?Quote:
Strings are constant; their values cannot be changed after they are created. String buffers support mutable strings.
String s = "abcde"; System.out.println(s);
s = "12345"; System.out.println(s);