How to make an object eligible for Garbage collection in Java?
A garbage collector is a program that ensures automatic memory management and runs periodically to…
A garbage collector is a program that ensures automatic memory management and runs periodically to…