SAP interview question

JAVA garbage collection, object comparison.