title: Can we access built-in classes without import statement
body: <p>I had created a class <code>Exception</code> (knowing that there already exists a built-in subclass with the same name) as follows :</p>
  
  <pre><code>class Exception {
      public static void main(String args[]) {    
          int i=8;
          try{
              int a = args.length;
              int g = i/a;
          } catch(ArithemticException e){
              System.out.println("here is the error:"+e);
          }
      }
  }
  
  
  class Except7 {
      static int h;
      public static void main(String args[]) {
          try{
              int h = 9 / 0;
              System.out.println("//");
          } catch(ArithmeticException e) {
              h = 4;
              System.out.println(h);
          } catch(Exception e) {
              System.out.println("h");
          }
      }
  }
  </code></pre>
  
  <p>As you might have noticed that I have written wrong spelling of 'Arithmetic' in the former code, so certainly enough  the compiler showed an error that it cannot find this symbol(<code>ArithemticException e</code>). 
  What I did was that instead of changing the spelling here, I wrote another code (the latter one). Here, I wrote correct spelling of Arithmetic and tried compiling it. It gave me two errors :</p>
  
  <ol>
  <li><code>incompatible types (required : Throwable     found: Exception )</code></li>
  <li><code>cannot find symbol(ArithemticException.java)</code></li>
  </ol>
  
  <p><strong>My doubts are:</strong></p>
  
  <ol>
  <li><p>How can we so easily change a built-in class (of Exception) ?Is it because it is an abstract class ?</p></li>
  <li><p>And even if I have an access to it directly(i.e. without using an 'import' statement), I didn't  tend to change the name of exception (ArithemticException). I had simply put it in a 'catch' statement. Then, why do other programs which don't have an 'import' statement  are able to access it.
  (I did not create any packages also, to say that they were package protected)</p></li>
  <li><p>The previous program did not get compiled and still other programs come up with the error of 'cannot find symbol' . </p></li>
  </ol>