import java.io.IOException;

/**
 * Example using finally block.
 * Enables playing with try/catch/finally executions--
 * just uncomment/comment out the thrown exceptions
 * 
 * @author CSCI209
 */
public class FinallyTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		try {
			System.out.println("Statement 1");
			// throw new ArrayIndexOutOfBoundsException();
			System.out.println("Statement 2");
			// throw new IllegalArgumentException();
		} catch (ArrayIndexOutOfBoundsException e) {
			System.out.println("In Catch");
		} finally {
			System.out.println("In Finally");
		}
	}

}

