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

In the below Java Program, how many objects are eligible for garbage collection?

Answer Posted / nashiinformaticssolutions

In general, three items are acceptable for waste pickup; however, I am not familiar with the program.

When the program starts, the first object is generated, and when it ends, it is no longer required.

When the user enters their name, the second object is generated; it is no longer needed at the end of the application.

When the user enters their address, the third object is generated; it is no longer required at the end of the program.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a type parameter in java?

978


Write a method that will remove given character from the string?

998


What if I write static public void instead of public static void in java?

1071


What is array length in java?

948


What is a java predicate?

941


What is var keyword ?

1166


Explain the significance of class loaders in bootstrap?

925


What is java abstraction with example?

1038


Why 1 is not a prime number?

1011


Can we use different return types for methods when overridden?

978


What does snprintf return?

981


How do you start a thread?

1014


Why is multithreading important?

926


Can you explain the private protected field modifier?

1012


What is meant by final class?

1087