package com.basic;//예외 처리3

public class ExceptionEx3 {
	public static void main(String[] args) {
		System.out.println("==예외가 발생하지 않고 정상수행==");
		System.out.println("1");
		try{
			System.out.println("2");
			System.out.println("3");
		}catch(Exception e){
			//예외가 발생하지 않으면 catch블럭은 호출되지 않음
			System.out.println("4");
		}
		System.out.println("5");
	}
}

==예외가 발생하지 않고 정상수행==

1
2
3
5


'Java > Exception Handing' 카테고리의 다른 글

예외처리 finally 사용법  (0) 2012.04.11
예외처리 5  (0) 2012.04.11
예외처리 기본4  (0) 2012.04.11
예외처리 기본2  (0) 2012.04.11
예외처리 기본  (0) 2012.04.11

+ Recent posts