Difference between the String and StringBuffer classes?

Answer Posted / anitha

yes, String is a immutable that means once the string
object is created it cannot be changed.

String Buffer: it is a mutable,this object is changed if we
make any modifications.

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are drawbacks of singleton class?

514


When wait(), notify(), notifyall() methods are called does it releases the lock or holds the acquired lock?

535


What is a java developer salary?

534


What is super in java?

567


What is a short in java?

490






What is the range of a character variable?

535


What is the difference between final, finally and finalize() in java?

508


When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?

750


placement papaers of spring computing technology

1016


How to implement a multithreaded applet?

2195


Is java still necessary?

609


What is hashmap in java?

556


Can two objects have same hashcode?

557


What is meant by the value of a variable?

445


What is continuity of a function?

515