Cognizant Interview Question

What's difference between new and old Java memory management