Suppose I have a string 

```
msg = "hello"

```

Now I get substring from string `msg` like `msg.substring(1,msg.length())`

And storing that substring into `msg`. 

So `msg` refers to new string. If the old string also remain in buffer of java and yes then how to access it?