Westpac Group interview question

Why does java NEED to pass objects by reference.