摘要:
http://blog.sina.com.cn/s/blog_5377b40a010007rz.htmlFriend.javaclass Friend implements Cloneable {int age;Stringname;//StringBuffer name;public Friend(int age, String name) {this.age = age;this.name = name;}public Object clone () throws CloneNotSupportedException {return super.clone();}}Person.javac 阅读全文
posted @ 2012-06-26 21:31
carbs
阅读(5043)
评论(1)
推荐(0)
摘要:
Java的异常处理Java的异常处理是通过5个关键字来实现的:try,catch,throw,throws,finally。JB的在线帮助中对这几个关键字是这样解释的: Throws: Lists the exceptions a method could throw. Throw: Transfers control of the method to the exception handler. Try: Opening exception-handling statement. ... 阅读全文
posted @ 2012-06-26 16:37
carbs
阅读(3403)
评论(0)
推荐(1)

浙公网安备 33010602011771号