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 the base class of all exception classes?

814


What is jit and its use?

767


What is a 16 bit word?

763


What’s the difference between callable and runnable?

749


Define inheritance with reference to java.

793


What is the difference between access specifiers and access modifiers in java? 16

739


Explain differences between checked and unchecked exceptions in java?

838


Explain how hashmap works?

801


How many bytes is a unicode character?

723


what is the difference between future and callable interface in java?

868


Can we declare the static variables and methods in an abstract class?

757


Is alive and join method in java?

764


What is the name of the java compiler?

775


What do you mean by order of precedence and associativity?

738


What are the differences between checked exception and unchecked exception?

744