Barclays Interview Question

garbage collection in java