title: class variable same as class name java
body: <p>I'm fairly new to Java &amp; because I'm curious, I decided to declare a variable using my class name to see if something would happen.  I get no error!  Why's that so?  What can you possibly do with a class name that's used to declare a variable?  I've tried a few things but none seem to work. </p>
  
  <p>Can anyone give me a brief explanation or an example possibly of what I can use my n variable for throughout my code?</p>
  
  <p>Thanks and sorry if this is a nooby question :)</p>
  
  <pre><code>import java.util.*;
  
  public class hello {
  public hello n;
  
  public static void main(String[] args) {
  
  
  
  }
  
  }
  </code></pre>