Hi Sethuraman,
According to my knowledge, in
Java, all Strings are immutable, which means once you assign a value and then change it, what you get is a new
string, not the same one. To over come this, there is a class called StringBuffer, where you can change the value. Hope this helps you. Good luck and Welcome to Java