Garbage Collection in Java – Objective Test

This “Core Java Practice Test on Garbage Collection” providing set of objective type questions on java Garbage Collection to test your theoretical skills and technical skills.

1. Why JVM will not run Garbage collector continuously ?


2. How can we analyze whether object are garbage collected or not ?


3. What type of memory data will be garbage collected?


4. Does Garbage collector destroys pool memory objects ?


5. When an object is said to be eligible for Garbage collection?


6. Who will stop Garbage collector thread ?


7. When JVM starts Garbage collector thread ?


8. Can we override finalize() method as public ?


9. Is Garbage collector Daemon or Non Daemon thread ?


10. What is the use of finalize() method ?


Question 1 of 10

Share this