Question: what are gc roots in java?
Answer: Garbage Collections Roots (GC roots) are objects that are kept alive by the JVM. These objects include: The thread objects of the threads that are currently running. The objects that are currently on the call stack. The classes that were loaded by the system class loader.