is an important part of Java security strategy. Garbage collection is
also called automatic memory management as JVM automatically removes the unused
variables objects from the memory.
The name garbage collection implies that objects that are no longer needed by the program are garbage and this object will destroy by garbage collector . A more accurate and up-to-date metaphor might be memory recycling. When an object is no longer referenced by the program, the heap space it occupies must be recycled so that the space is available for subsequent new objects.
The garbage collector must somehow determine which objects are no longer referenced by the program and make available the heap space occupied by such unreferenced objects.
In the process of freeing unreferenced objects, the garbage collector must run any finalizers of objects.
Core Java Interview Questions
Object Oriented Programming(OOP) Questions and Answers
Collections Interview Questions
Java Exceptions Interview Questions
Java Threads Interview Questions
Collection framework in java interview questions
oops concepts with example in java
Java Serialization Interview Questions
Top 20 Core Java Interview Questions with Answers
String Interview Question in java With Example
synchronization interview questions
Java Reflection Interview question
Java Executor Framework (JDK 1.5) Interview Questions
JDK 1.7 interview Questations and Answers
Java I/O interview question with example