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
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
Name three subclasses of the component class?
What is the difference between session and entity beans?
What is jboss?
What is the highest-level event class of the event-delegation model?
difference between ejb,struts,hibernate,spring and jsp
What is permgen or permanent generation?
How are commas used in the intialization and iteration parts of a for statement?
What is the purpose of the wait() method?
What are transaction attributes?
What’s jboss cache in short?
What are JTA/JTS and how they used by client?
What are the types of scaling?
How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!
What is message driven beam?