摘要:
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 阅读全文
摘要:
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. ... 阅读全文