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...

what is meant by string pooling?

Answer Posted / sivadasan

See,

String s = new String("Shiva");

Its creating two instances and one reference.

In the Two instance one is stored in Constant pool and
another one is stored in temp' pool.

What about String s = "Shiva";

Anybody can, pls clarify...

Is This Answer Correct ?    4 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of strings?

1035


How do you compare objects in java?

962


What is the difference between stringbuffer and stringbuilder?

1065


What is methods in java?

1014


What is default switch case? Give example.

1015


What are the super most classes for all the streams?

2572


What happens when heap memory is full?

994


How do I stop concurrentmodificationexception?

1039


How is the marker interface used in Java?

1103


What are local variables?

1057


How does singleton class work?

997


How to connect to a remote database using Applet?

2549


What is the loop in java?

1160


What is number data type?

1039


Is binary a low level language?

925