title: Objects and Reference Count | Java
body: <p>Consider the following code snippet in Java:</p>
  
  <pre><code>Customer obj1 = new  Customer();  
  Customer obj2 = new Customer();  
  Customer obj3 = obj2;  
  obj3 = obj1;   
  </code></pre>
  
  <p>How many reference variables and objects are created here?
   The solutions I came across were all confusing. Please explain.</p>