Dynamic Technology Lab interview question

How GC works in Java