Difference String and String Buffer

Answer Posted / kanchan

String are read only and immutable. The StringBuffer class
is used to represent characters that can be modified.
StringBuffer is faster than String when performing simple
concatenations.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

please send me hr interview questions in it industry

1671


What does it mean that a method or field is “static”?

553


What is java ceil?

573


What are synchronized methods and synchronized statements in java programming?

578


Can a class have multiple constructors?

538






what is interface in java? Explain

536


Which is the best sorting technique in java?

527


Explain the selection sort algorithm and state its time complexity?

614


why are wait(), notify() and notifyall() methods defined in the object class? : Java thread

555


Does garbage collection occur in permanent generation space in jvm?

611


What is fail fast in java?

576


What is regex used for?

547


What is the use of default method in interface in java?

555


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

569


How many bytes are a float?

511