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 exactly garbage collection take place?

Answer Posted / vijayakumar chinnasamy

Variable/object
1. is eligible for garbage collection when no object refers
to it.
2. Is eligible when its reference is set to null i.e
objName=null.
3. referred by method variables or local variables are
eligible for garbage collection when they go out of scope.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of static methods?

1093


What ide should I use for java?

1089


How a variable is stored in memory?

1047


Explain the hierarchy of java exception classes?

1181


What is object-oriented programming?

1203


How do you implement tree mirroring in java?

1119


Is space a char?

986


What is a copy constructor in java?

1198


Can we use switch statement with strings?

1090


Can a class have an interface?

1039


What is comparator in java?

1064


How do you join strings in java?

1112


what is the difference between yielding and sleeping? : Java thread

1009


What is api in java?

1020


Can we use string in switch case in java?

1131