@elmirap

we can predefine the roots. what do you mean by that? a bit more illustration please? :) Exactly, that's one assumption you definitely want to bring up with your interviewer. It's usually how JVM GC works.