首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Java编程思维学习笔记(二)

2012-09-20 
Java编程思想学习笔记(二)Java编程思想学习笔记(二)???public class InheritingExceptions {public void f

Java编程思想学习笔记(二)

Java编程思想学习笔记(二)

?

?

?

public class InheritingExceptions { public void f() throws SimpleException { System.out.println("异常"); throw new SimpleException(); } public static void main(String[] args) { InheritingExceptions sed = new InheritingExceptions(); try { sed.f(); } catch (SimpleException e) { System.out.println("Caught it"); } }}class SimpleException extends Exception {}

?

?

???

热点排行