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


Please Help Members By Posting Answers For Below Questions

How primary key is implemented in Oracle?

2172


What is in-memory replication?

799


What class is the top of the awt event hierarchy?

854


Explain ioc concept?

874


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?

1928


Explain the different types of memory used by jvm?

888


Explain the steps in details to load the server object dynamically?

4823


Are enterprise beans allowed to use thread.sleep()?

914


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?

1853


Difference between DurableSubscription and non- DurableSubscription?

1960


What are the different class loaders used by jvm?

845


What state does a thread enter when it terminates its processing?

851


What is bean? Where can it be used?

829


Have you used threads in Servelet?

2236


Are there books about seam?

867