Temenos interview question

How JVM takes care of Garbage Collection.