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.

Answers were Sorted based on User's Feedback



How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused obje..

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

How GC (Garbage Collector) knows the objects reference is unused.Whether GC removes the unused obje..

Answer / balamurugan

it checks whenever we will not used the objects in our
program then jvm checked with forward referenceduse help of
heap memory. then gb removes the un used objects

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Tell me the difference between an applet and a Japplet?

1 Answers  


If I have 1000 objects and my requirement is to sort them quickly, then which collection would you recommend and why?

5 Answers   KPIT,


What is * argv?

0 Answers  


What is finalize method?

0 Answers  


Howmany address lines are required to addressing 1 MB memory?

8 Answers   Beatroot Technologies, CSC, HCL, Hexaware, IBM,


What are the characteristics provided in jdk1.6 apart from other versions?

3 Answers   TCS,


What is static and a non-static inner class?

3 Answers  


In which language JVM (Java Virtual Machine) is implemented

5 Answers  


why operator overloading is removed in java?

1 Answers  


What are thread local variables?

0 Answers  


What is the % operator?

2 Answers  


Why we do exception handling in java and how many types of exceptions are there?

0 Answers  


Categories