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 is console based application in java?

787


Explain java code for recursive solution's base case?

778


Is string a class in java?

725


What is the private method modifier?

807


Difference between object instantiation and construction ?

817


How to split arraylist elements in java?

838


Does java linked list allow duplicates?

738


What is this keyword in java?

793


What's the access scope of protected access specifier?

781


Is a string literal?

723


What does jre stand for?

806


Is space a character in java?

760


What is difference between next () and nextline () in java?

758


What is command line argument in java?

836


What are different types of inner classes ?

775