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

How to convert string to char and vice versa?

0 Answers  


diff b/w sleep(1000) and wait(1000)?

4 Answers   Huawei,


What is difference between abstract class & final class

7 Answers  


How do I get 64 bit java?

0 Answers  


What is not object oriented programming?

0 Answers  






Why is java not 100% pure oops?

0 Answers  


how to print a numbers from 1 to 100 with out using control structures?

4 Answers   IBM,


solve (x-1)(x-9)=8;

3 Answers   IBM, Manhattan, TCS,


What is a linkedhashmap java?

0 Answers  


What is the difference between array list and vector in java?

0 Answers  


What is the difference between access specifiers and access modifiers in java?

0 Answers  


Why arraylist is used in java?

0 Answers  


Categories