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

Do you know why doesn't the java library use a randomized version of quicksort?

953


What is native method in java?

1058


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

1087


Difference between == and .equals() ?

1001


How would you dynamically allocate memory to an array?

1040


What is difference between final and finally in java?

1084


State the difference between creating string as new () and literal.

1118


What is java and its types?

1094


What are inbuilt functions in java?

1086


Can we use different return types for methods when overridden?

999


Print Vertical traversal of a Binary Tree.

1017


What access modifiers can be used for variables?

1148


What is xslt in java?

978


What does regex mean?

1014


Can we use both this () and super () in a constructor?

1006