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
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
Explain the difference between object state and behavior?
Why a client should be multithreading? Explain.
If we opened Windows Internet Explorer 4 times, does it starts 4 processes or 4 threads?
How to implement RMI in Java?
How will you pass parameters in RMI? Why do you serialize?
What is ripple effect?
Where can I find seam examples and documentation?
what are the advantages of JTA over JTS?
What is clustering? What are the different algorithms used for clustering?
What is the infobus?
Do we need to override service() method
what are RemoteObjects?
What value does readline() return when it has reached the end of a file?
Is the ternary operator written x : y ? Z or x ? Y : z ?