title: Java - Object declaration and initialisation
body: <p>When constructing a new object, I use the following code. In this code, is the object reference the variable 'a'?</p>
  
  <pre><code>BankAcc a = new BankAcc();
  </code></pre>
  
  <p>Also, out of interest, if the above constructs a new object to the variable a, what does the following do? Does it just create a new object without a variable/object reference?</p>
  
  <pre><code>new BankAcc();
  </code></pre>
  
  <p>Thanks!</p>