How many objects are eligible for Garbage collection in Java?

Garbage collection in java?

  • no links plz. i need short note on garbage collection in java

  • Answer:

    Garbage Collector is used to free the memory which has taken by some references or objects and these are no longer use in that specific program As you know java has its own garbage collector, you don't need to call it but if you want you can call it. When you assign null to some objects , garbage collector took it after some time but there is no fix time when it will be picked. Even When you call garbage collector, it will not collect the garbage immediately but it will collect after some time.

niki M at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.