Genpact interview question

explain about java along with their gc and metadata