728x90 java catch block1 [JAVA] ch08-04. 예외 처리 4 public class Ex04 { public static void main(String[] args) { System.out.println(1); System.out.println(2); try{ System.out.println(3); System.out.println(4); }catch(Exception e){ //Exception이 없으므로 catch block 실행 x System.out.println(5); } System.out.println(6); } } JAVA/예제 2017. 8. 22. 이전 1 다음 728x90