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

What is anti pattern in programming?

751


What are the supported platforms by java programming language?

828


Is object a data type in java?

860


What is linked hashmap and its features?

791


What are the types of exceptions?

811


What are the super most classes for all the streams?

1860


What is the purpose of extern variable?

774


I want to re-reach and use an object once it has been garbage collected. How it's possible?

787


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

877


Where are register variables stored?

827


What is function declaration?

736


What are the advantages and disadvantages of object cloning?

798


what are the high-level thread states? : Java thread

788


Can finally block be used without a catch?

759


What is the similarity between dynamic binding and linking?

852