what is the difference between String and StringBuffer classes?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What are format specifiers in java?

601


what is heap memory?

660


What is polymorphism and what are the types of it?

513


How is it possible in java programming for two string objects with identical values not to be equal under the == operator?

569


What data structures are used to perform recursion?

608






What is abstract class? Explain

599


How many bytes is a string java?

536


When is the finalize() called? What is the purpose of finalization?

586


What is an class?

595


What are facelets templates?

605


What is the Concept of Encapsulation in OOPS

562


Explain the difference between the public, private, final, protected, and default modifiers?

553


What advantage do java's layout managers provide over traditional windowing systems?

551


What is stringjoiner ?

579


What is a flag value?

523