>>You have created two strings containing names. Thus
How can you go about changing these strings to take new values within the same block of code?
String fname=new String("Fred");
String lname=new String("Jones");
StringBuffer fname=new StringBuffer(fname);
StringBuffer lname=new StringBuffer(lname);
4) None of the above
i was going through above question, answer from following link
It is not clear to me what exactly the question meant with respect to immutability
Any ideas, resources, links, sample code highly appreciated. thanks in advance.