Difference between String & StringBuffer

Answer Posted / kunal chwala

It means that we cant change the content of String once created. If we try append a new string using + operator
then it creates new String object.
ex.

Is This Answer Correct ?    13 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to handle exceptions in ejb?

1867


In java how do we copy objects?

548


What are the classes of java?

537


What is ordered map in java?

535


Is there any sort function in java?

571






Why is logger singleton?

562


What is string length in java?

488


What is return keyword in java?

559


What is port number in java?

585


What is <> used for in java?

665


What is assembly language?

548


If I only change the return type, does the method become overloaded?

535


What is the abstract class?

595


What are adapter classes?

597


What are the wrapped, classes?

597