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 token in java?

786


Explain about main() method in java ?

811


When super keyword is used?

814


What data type is true or false?

798


What is treeset in java?

767


How will you print number in reverse (descending) order in BST.

782


What is the purpose of the finally clause of a try-catch-finally statement in java programming?

725


What is connection class in java?

751


how to create multithreaded program? Explain different ways of using thread? : Java thread

752


What are the features of java?

754


How to check if linked list contains loop in java?

661


What does flagged out mean?

816


What is int short for?

738


What is the structure of java?

766


Difference between final and effectively final ? Why is effectively final even required ?

774