Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 can I avoid validating a form before data is entered?

993


To what value is a variable of the string type automatically initialized?

1130


What class is the top of the awt event hierarchy?

1103


What if the static modifier is removed from the signature of the main method?

1233


What is in-memory replication?

1051


What is a clone?

1050


Why use POJO when I can use hashmap

2638


which type of objects reference will be given to client?

2478


What happens when a thread cannot acquire a lock on an object?

1031


What is Stream Tokenizer?

2227


How a component can be placed on Windows?

2852


Can I have an action without a form?

1098


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

5095


Whats new with the stop(), suspend() and resume() methods in jdk 1.2?

1041


How messaging services are done, before release of JMS?

2133