Can you explain what Java's garbage collection mechanism does?
It is used to clean up the Java system but needs to be manually handled.
Thatâ€™s not entirely correct. Javaâ€™s garbage collection is mostly automatic.
Can you explain what the 'System.gc()' call does in Java?