java Object By Reference
<p>I forgot some java concept. </p>

<pre><code>PaymentData payment = basket.getPaymentData(); 
PaymentData newPayment =  payment;
basket.unMaskCreditCardNumbers(payment);
basket.maskCreditCardNumbers(payment);
</code></pre>

<p>Here issue is when unmask the <code>payment</code> object, <code>newPayment</code>  object also unmasking. if I mask payment object newPayment object again masking. </p>

<p>Is this happened by "object by reference"?</p>

<p>Thank You</p>
