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 / koneti

yes, two Objects are created one Object is string constent
pool and second one is in heap memory

Is This Answer Correct ?    40 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are packages in java?

1483


Difference between collection, collection and collections in java?

961


What are the two environment variables that must be set in order to run any java programs?

914


Can java cast null?

986


Can you extend singleton class?

1043


A non-static inner class may have object instances that are associated with instances of the class’s outer class. A static inner class does not have any object instances.

968


Is a method a procedure?

999


what is comparable and comparator interface?

944


what is the difference between the methods sleep() and wait()? : Java thread

912


When do we use hashset over treeset?

998


Why do we use string?

978


What are nested classes in java?

1048


What are the pillars of java?

873


In the below example, how many string objects are created?

985


Is there a jre for java 11?

1014