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