java7.4

来源:互联网 发布:大唐天下软件开发 编辑:程序博客网 时间:2024/04/29 08:55

7.4


package sevenwork4;
public class Test {
public static void aMethod() throws Exception{
 try {
  throw new Exception();
 }
 catch(Exception e) {
  System.out.println("exception000");
 }
 finally {
  System.out.println("finally111");
 }
}
public static void main(String args[]) {
 try {
  aMethod();
 }
 catch(Exception e) {
  System.out.println("exception");
 }
 System.out.println("finished");
}
}

原创粉丝点击