OpenText interview question

memory management in java