How parameters are passed in Java causes the side effect !