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
What is a modular application? What does module-relative mean?
Name three subclasses of the component class?
what are getters and setters in Java with examples?
how i secure my site with the https protocol.what are the steps?
Can I run seam outside of jboss as?
What is the purpose of the notifyall() method?
Where can I ask questions and make suggestions about seam?
What is a policy?
Should synchronization primitives be used on bean methods?
Explain the different types of memory used by jvm?
What are local interfaces? Describe.
Where we can write Rmi registry in the code, without having to write it at the command prompt?
Explain the difference between object state and behavior?
What are the diff types of exception?
What is clustering? What are the different algorithms used for clustering?