what is the difference between String and StringBuffer classes?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can two objects have same hashcode?

566


Is 0 an even number?

557


What is a instance variable in java?

555


Can a static class have a constructor java?

554


What are Normalization Rules? Define Normalization?

551






What is java argument list?

522


What is public/private protected in java?

548


What is a consumer in java?

570


What is the length of a string?

528


What is a function easy definition?

529


What are the advantages of encapsulation in java?

556


Hi Anyone know the model / questions of the Federal bank sample questions for the post of Specialist Officers - Programmers. Please post if anyone have..

1826


What are different types of encoding?

589


What is an exception? difference between Checked and Unchecked exception in Java

564


Is integer a class?

571