Passing Object As Parameter In Java Program