String is immutable.it is true
String can be change to mutable How?

Answer Posted / prathap

Because of String pooling String is immutable. Using StringBuffer we can change it as mutable. i.e.,This string literal reference is assaigened to StringBuffer object
Eg : String s="java";
     StringBuffer sb= new StringBuffer(s);

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are enterprise beans allowed to use thread.sleep()?

640


Describe responsibilities of Activator?

1665


How to implement RMI in Java?

2396


What do you need to set-up a cluster with jboss?

569


Why is actionform a base class rather than an interface?

559






Name the class that is used to bind the server object with RMI Registry?

1687


What is the difference between the session.get() method and the session.load() method?

596


Define prototype?

577


What value does readline() return when it has reached the end of a file?

580


What are the oops concept?

572


Is the ternary operator written x : y ? Z or x ? Y : z ?

631


What is a class loader?

581


What is clustering? What are the different algorithms used for clustering?

570


Why use POJO when I can use hashmap

2041


What are various types of class loaders used by jvm?

492