For the following code :
String object will be created in heap area (not inside String pooled area):
String str = new String("very");
Now if I modify str to refer "good" like:
str = "good";
Will it modify the object "very" created in heap and change its value to "good" or will it create a new object of "good" in pool?