Fidelity Investments interview question

Java Garbage Collector and how to optimize it