Difference between String and String Buffer?

Answer Posted / janet

1. String objects are constants and immutable where as
StringBuffer objects are not.
2.String class supports constant strings where as
StringBuffer class supports growable and modifiable strings.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1829


What does substring mean?

519


What is widening and narrowing in java? Discuss with an example.

566


What are classloaders?

606


What is the difference between an object-oriented programming language and object-based programming language?

581






What is method in java with example?

495


What is the symbol for line break?

618


What are thread priorities and importance of thread priorities in java?

635


What are the differences between heap and stack memory in java?

548


why Java does not support multiple inheritances?

712


Can we clone singleton object?

577


What is numeric function?

545


What is a protected void?

514


Can we call thread start () twice?

527


how does multithreading take place on a computer with a single cpu? : Java thread

702