Difference between String and StringBuffer.

Answer Posted / madhu

string is imutable and stringbuffer is mutable

Mutable means storing location is same
Imutable means storning location is different

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scope & storage allocation of global and extern variables? Explain with an example

579


What is the major advantage of external iteration over internal iteration?

610


What variables are stored in stack?

527


Define nashorn in java8.

563


What is linked hashmap and its features?

538






What is a blocking method in Java?

601


What is integers and example?

486


How is treeset implemented in java?

487


Can a function return a function?

548


Which category the java thread do fall in?

567


What is java util hashmap?

512


How can we make a class virtual?

637


What is connection class in java?

508


What is the purpose of the System class?

576


Highest level event class of the event-delegation model?

3497