CitiusTech interview question

How garbage collection works in java what is the method we can use explicitly?