Infosys interview question

internal working of GC in java