Garbage Collection Flashcards

1
Q

What is garbage collection in java?

A

Removing unwanted objects or abandoned objects from the memory is called garbage collection. Garbage collection is done automatically in java. You need not to remove the unwanted objects explicitly. Garbage collector thread does this for you.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does garbage collector thread work in java?

A

https://javaconceptoftheday.com/garbage-collection-finalize-method-java/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly