how to continue the java program after Exception?
<p>I have the sample following code.</p>

<pre><code>public class ExceptionsDemo {

public static void main(String[] args) {
    try {
        int arr[]={1,2,3,4,5,6,7,8,9,10};
        for(int i=arr.length;i&lt;10;i++){
             if(i%2==0){
                System.out.println("i =" + i);
                throw new Exception();
             }            
        }
    } catch (Exception e) {
           System.err.println("An exception was thrown");
      }

}
}
</code></pre>

<p>Now my requirement is, after the exception is caught I want to process the remaining elements of the array. How to do this?</p>
