- What is garbage collection? What is the process that is responsible for doing that in java? - Reclaiming the unused memory by the invalid objects. Garbage collector is responsible for this process
- What kind of thread is the Garbage collector thread? - It is a daemon thread.
- What is a daemon thread? - These are the threads which can run without user intervention. The JVM can exit when there are daemon thread by