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 is difference between equals and ==?

1059


What are the four versions of java?

1013


What is the old name of java?

992


What is the difference between hashset and treeset in java?

1066


What is singleton class and how can we make a class singleton?

1098


What does the ‘static’ keyword mean? Is it possible to override private or static method in java?

984


What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

1132


What is the platform?

998


What is a void method?

918


What is a pointer and does java support pointers?

1005


How do you sort data in java?

945


What is java reflection?

981


Can we extend singleton class in java?

959


What is final method?

1064


How does a for loop work?

984