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 primary key is implemented in Oracle?
What is in-memory replication?
What class is the top of the awt event hierarchy?
Explain ioc concept?
AS a developer will u create a data source in connection pool? If so how will u do that, how to access the object from connection pool using IRAD tool?
Explain the different types of memory used by jvm?
Explain the steps in details to load the server object dynamically?
Are enterprise beans allowed to use thread.sleep()?
In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?
Difference between DurableSubscription and non- DurableSubscription?
What are the different class loaders used by jvm?
What state does a thread enter when it terminates its processing?
What is bean? Where can it be used?
Have you used threads in Servelet?
Are there books about seam?