title: Referencing objects in java
body: <p>In java, what is the difference between following 2 usage,  </p>
  
  <pre><code>Employee e1 = new Employee();  
  1.Employee e2 = (Employee)e1.clone();  
  2.Employee e2 = e1;
  </code></pre>
  
  <p>In second case, I think e2 reference to the object that e1 also reference. So, they have the same same object with different reference number(may be memory address).  </p>
  
  <p>How about first case? Do e1 and e2 have both different object and reference?</p>