title: Java: import statement vs fully qualified name?
body: <p>I've tried finding an answer to this both online and in my own set of knowledge, but I cannot seem to find a definitive, clear answer.</p>
  
  <p>Suppose I'm using only one class from another package only once which needs to be imported, say <code>myPack.anotherPackage.ClassName</code>.</p>
  
  <p>What is the difference, if any, between using an <strong><em>import statement</em></strong>:</p>
  
  <pre><code>import myPack.anotherPackage.ClassName;
  </code></pre>
  
  <p>versus using a <strong><em>fully qualified name</em></strong>:</p>
  
  <pre><code>myPack.anotherpackage.ClassName classInst = new myPack.anotherpackage.ClassName();
  </code></pre>
  
  <p>? </p>
  
  <p>Obviously this question only applies if <code>ClassName</code> is only used once.<br></p>