CICC interview question

Please explain java GC, stack and heap