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
Is it possible to stop the execution of a method before completion in a sessionbean?
Is infobus easy to use?
What are various types of class loaders used by jvm?
Whats new with the stop(), suspend() and resume() methods in jdk 1.2?
What are the pros and cons of detached objects?
Describe activation process?
Why doesn’t the focus feature on the tag work in every circumstance?
What is the difference between RMI and Corba?
What is the difference between the font and fontmetrics classes?
Is there a guarantee of uniqueness for entity beans?
Why use POJO when I can use hashmap
What is scalable, portability in the view of J2EE?
Can I have an action without a form?
What’s jboss jbpm?
How to deploy Jar, War files in J2EE?