View All num of num Add Photos Bayer Business Services This employer has taken extra steps to respond to reviews and provide job seekers with accurate company information, photos, and reviews. Interested for your company?Learn More. www.bayerbbs.com Profile Unclaimed Overview Reviews Salaries Interviews Jobs Photos Benefits 26 Reviews 36 Salaries 14 Interviews Follow Add Review or Salary Follow Add Review or Salary Interview Question Software Engineer Interview Mumbai (India) Bayer Business Services GC in Java Tags: java See more , See less 8 Answer Add Tags Answer Interview Answer 1 Answer ▲ 0 ▼ Garbage collection is one of the most important feature of Java, Garbage collection is also called automatic memory management as JVM automatically removes the unused variables/objects (value is null) from the memory. User program can’t directly free the object from memory, instead it is the job of the garbage collector to automatically free the objects that are no longer referenced by a program. Every class inherits finalize() method from java.lang.Object, the finalize() method is called by garbage collector when it determines no more references to the object exists. In Java, it is good idea to explicitly assign null into a variable when no more in use. I Java on calling System.gc() and Runtime.gc(), JVM tries to recycle the unused objects, but there is no guarantee when all the objects will garbage collected. Varun Pujari on Jul 2, 2012 Add Answers or Comments To comment on this, Sign In or Sign Up.