Java – Understanding Instance Method