JPMorganChase Interview Question

How does java store memory?