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

Is it possible to stop the execution of a method before completion in a sessionbean?

838


Is infobus easy to use?

809


What are various types of class loaders used by jvm?

727


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

803


What are the pros and cons of detached objects?

757


Describe activation process?

2300


Why doesn’t the focus feature on the tag work in every circumstance?

786


What is the difference between RMI and Corba?

2489


What is the difference between the font and fontmetrics classes?

819


Is there a guarantee of uniqueness for entity beans?

757


Why use POJO when I can use hashmap

2293


What is scalable, portability in the view of J2EE?

2207


Can I have an action without a form?

836


What’s jboss jbpm?

770


How to deploy Jar, War files in J2EE?

2388