MathWorks interview question

Java garbage collection mechanism.