Sobes.tech
Junior

What does the garbage collector work with?

sobes.tech AI

Answer from AI

With objects that are considered unreachable from root objects. These nodes include:

  • Local variables and parameters of the currently executing method.
  • Active threads.
  • Static variables of classes.
  • JNI references (Native code references).
What does the garbage collector work with? — Java - sobes.tech