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
Can I import same package/class twice? Will the jvm load the package twice at runtime?
which book is better for jdbc ,servlets and jsp
Which container method is used to cause a container to be laid out and redisplayed?
What are local interfaces? Describe.
What is the infobus?
wahts is mean by dynavalidatorform in struts/
What is a sessionfactory? Is it a thread-safe object?
Explain ioc concept?
How substring() method of string class create memory leaks?
Explain the steps in details to load the server object dynamically?
what is handle?
How can I scroll through list of pages like the search results in google?
What does module-relative mean?
how i secure my site with the https protocol.what are the steps?
What is the map interface?