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

How many objects are created when we create String class
object using new operator?

Answer Posted / mahesh

yes two objects will be created when you use new operator
for a String. The reason for this is at first it creates an
object in HEAP and then verifies in the String Constant
Pooling if it is not available then creates the new one in
pool. so totally two object will be created.

Is This Answer Correct ?    22 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does index mean in java?

1036


How do you define a variable?

992


Is null a string or object in java?

1019


What are the types of collections in java?

1117


What does exp mean in math?

1044


Explain wait() method of object class ?

1291


Variable of the boolean type is automatically initialized as?

1049


What do you mean by a JVM?

1352


What are the advantages of java over C++?

1249


Explain oops concepts in detail?

1078


What is a short in java?

1120


What is java in layman terms?

1052


What is a map? What are the implementations of map?

1148


What are pass by reference and pass by value?

1037


What is the best definition for data?

1024