String is mutable or immutable?

Answer Posted / sumitpalsingh

String class is immutable .In String class we can not change or modify object value. To make an object value modifiable. we can use StringBuffer and StringBuilder classes.

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is one third plus one third as a fraction?

491


What is square root in java?

589


Difference between overriding and overloading in java?

581


Is there any difference between synchronized methods and synchronized statements?

586


Given a singly linked list, how will you print out its contents in the reverse order? Can you do it with consuming any extra space?

609






Tell me the Importent classes in net package?

1582


When is the finally clause of a try-catch-finally statement executed?

506


What is the base class of all exception classes in java?

572


Which arithmetic operations can result in the throwing of an arithmeticexception?

601


Why is it called boolean?

527


Can we declare register variable as global?

517


What is final keyword in java?

557


What is the difference between replace and replace all?

477


How do you escape json?

542


What methods are used in Servlet?Applet communication?

1668