General Atomics interview question

Do you know how garbage collecting works in Java?