摘要:
异常是封装错误信息的对象,一般包含类型名称,提示信息和代码的错误行号。继承结构如下所示。 Throwable |- Error 系统级错误 |- Exception 可修复的异常 |- 其他Exception |- RuntimeExceptin |- NullPointerException |-... 阅读全文
摘要:
public class Test { public static void main(String[] args) { Generics g1 = new Generics(); Generics g2 = new Generics(); Gener... 阅读全文
摘要:
public class Test1 { public static void main(String[] args){ List list = new ArrayList(); Collections.addAll(list, "95","91","94","93... 阅读全文