What is difference between stringbuffer and string?



What is difference between stringbuffer and string?..

Answer / Deepika Saxena

String objects are immutable, while StringBuffer and StringBuilder are mutable. String objects cannot be changed once created, whereas StringBuffer and StringBuilder can be modified after creation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the size of string?

1 Answers  


Is it possible to write static method in abstract class? justyfy your answer?

5 Answers   Hexaware,


What is a map? What are the implementations of map?

1 Answers  


Define how does a try statement determine which catch clause should be used to handle an exception?

1 Answers  


What are the types of strings?

1 Answers  


Is java a digit method?

1 Answers  


What is the protected method modifier?

1 Answers  


Why is flag used in java?

1 Answers  


What is the relationship between clipping and repainting under awt?

1 Answers  


What is the difference between class forname and new?

1 Answers  


What is static in java?

1 Answers  


Define a java class.

2 Answers  


Categories