IPSG Systems interview question

Java GC internal working