title: Creating an object
body: <pre><code>Box buttonBox = new Box(BoxLayout.Y_AXIS);  
  Name1 name2 = new Name1();  
  </code></pre>
  
  <p>there are two Name1s  </p>
  
  <pre><code>checkboxList = new ArrayList&lt;JCheckBox&gt;();  
  name2 = new Name1();  
  </code></pre>
  
  <p>there is only one Name1  </p>
  
  <p>It works, but why?</p>