title: Try-Catch-Throw in the same Java class
body: <p>Is it possible to catch a method in the current class the try-catch block is running on? for example:</p>
  
  <pre><code>  public static void arrayOutOfBoundsException(){
        System.out.println("Array out of bounds");
    }
  
      .....
  
    public static void doingSomething(){
      try
      {
         if(something[i] &gt;= something_else);
      }
      catch (arrayOutOfBoundsException e)
      {
         System.out.println("Method Halted!, continuing doing the next thing");
      }
    }
  </code></pre>
  
  <p>If this is <strong>possible</strong> how will it be the correct way to call the catch method?</p>
  
  <p>If this is <strong>not possible</strong>, could anyone point me in the right direction, of how to stop an exception from halting my program execution in Java <strong>without</strong> having to create any new classes in the package, or fixing the code that produces ArrayOutOfBoundsException error.</p>
  
  <p>Thanks in Advance,</p>
  
  <p><em>A Java Rookie</em></p>