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 GC (Garbage Collector) knows the objects reference is
unused.Whether GC removes the unused object Parmanently or
it maintains something.

Answer Posted / devarathnam.c, kotagudibanda,k

Hi,
The Garbage Collector(GC)will be always under the control
of JVM, So JVM periodically runs the GC. It uses "sweep"
and "mark" algorithms to identify the unused objects in the
application. You don't bother about GC, JVM will take of it.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can java hashmap have duplicate keys?

1038


What is the purpose of using break in each case of switch statement?

1029


How do I stop concurrentmodificationexception?

1041


How to disable caching on back button of the browser?

1088


What is a void in java?

1176


What are the types of java languages?

987


What is widening and narrowing in java? Discuss with an example.

1049


What are the problems faced by java programmers who don't use layout managers?

987


What is string in java with example?

1044


What are the advantages of autoboxing?

1023


Which command from the jdk compiles a java program?

1003


Is there any limitation of using inheritance?

1093


What is command line argument in java?

1160


How do you download stubs from Remote place?

1796


Can we have return statement in finally clause? What will happen?

974