test on how do we pass objects in java