I have been going through String class in Java in depth. String in Java is backed by character array.
To create strings that have initial values, we call the constructor as:
/* String creation */
String s = new String("example");
The constructor code in the String class is:
public String(String original) {
this.value = original.value;
}
Can some one please explain me the logic of "original.value". From the source code, I understand it returns character array. But how java generates it?