what is the difference between String and StringBuffer classes?

Answers were Sorted based on User's Feedback



what is the difference between String and StringBuffer classes?..

Answer / kishore cheruku

a) String objects are constants and immutable whereas StringBuffer objects are not. b) String class supports constant strings whereas StringBuffer class supports growable and modifiable strings.

Is This Answer Correct ?    23 Yes 0 No

what is the difference between String and StringBuffer classes?..

Answer / tarun choudhary

The String class is used for strings that are not allowed to change. The StringBuffer class is used for strings that may be modified by the program.

Is This Answer Correct ?    15 Yes 0 No

Post New Answer

More Core Java Interview Questions

explain oops concepts with examples?

29 Answers   AbhiBus, Beeline, DELL, HCL, Satyam, TCS, VLS, Wipro,


Why operator overloading is not in Java?

0 Answers  


how would you implement a thread pool? : Java thread

0 Answers  


What is meant by structural programming?

0 Answers  


What is synchronization and why is it important in java programming?

0 Answers  






Why for each loop is used?

0 Answers  


What is r * in math?

0 Answers  


What is the internal implementation of set in java?

0 Answers  


What is the difference between checked exception and unchecked exception?

0 Answers  


What is unicode?

1 Answers  


What is a singleton class? Give a practical example of its usage.

0 Answers  


Why should we use singleton pattern instead of static class?

0 Answers  


Categories