jdk1.5的新特性

jdk1.5的新特性:java 1. 泛型 2 自動裝箱/拆箱 3 for-each 4 static import 5 變長參數數組 1. 泛型 (避免類型強制轉換可能引發的運行錯誤) 例如: ArrayList list=new ArrayList(); list.add(new Integer(3)); list.add(new Integer(4)); int i=((Integer)(l
相關文章
相關標籤/搜索