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 a static method in java?

987


Tell some latest versions in JAVA related areas?

930


What is a JAR file?

983


What are the differences between throw and throws?

1029


Can a class have a static inner class?

1028


How does arraylist size increase in java?

1043


What are class types in java?

1026


Is it possible to cast an int value into a byte variable? What would happen if the value of int is larger than byte?

904


What is a function argument in java?

943


What is meant by 'Class access modifiers'?

982


Is space a char?

880


How do you find the maximum number from an array without comparing and sorting?

1070


What is a pattern what is an anti pattern?

890


What is the purpose of using javap?

1027


Explain different forms of polymorphism?

1095