why String class is immutable.

Answer Posted / rakesh

For save the memory and reduce the response time.
StringBuffer provide an alternet for String class object,
which is muttable.

Is This Answer Correct ?    5 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is connection class in java?

499


What is formatted output?

504


How do you remove duplicates in java?

511


How does a for loop work java?

530


What is the simpletimezone class in java programming?

528






What is the use of static class?

535


What is public static void main?

561


Why we use set in java?

504


What is the console in java?

666


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

530


Can array grow dynamically in java?

514


What are 4 pillers of object orinted programming?

570


What is jvm? Why is java called the platform independent programming language?

535


Explain the importance of import keyword in java?

515


Why object class is super class for every class in java?

557