Hi
I have one doubt.
1
String str = "Hello";
2 System.out.println(str); //Prints Hello
3 str = "GoodBye";
4 System.out.println(str); //Prints GoodBye.
In Line 3 , the string reference is created to new String Object and GoodBye is placed in the String reference str.
And the Original Object str Hello is Unchanged.
Is there any Way to access or print the Original Object Value (Hello) of str after the Line 4.