- 博客(2)
- 资源 (9)
- 收藏
- 关注
转载 JDK1.5新特性
关键字: jdk1.5新特性介绍 泛型(Generics)--为集合(collections)提供编译时类型安全,无需每刻从Collections取得一个对象就进行强制转换(cast) 增强的“for”循环(Enhanced For loop)--减少迭代器(iterator)的潜在错误(error-proneness) 自动置入/自动取出(Autoboxing/unboxin
2011-11-05 10:20:55 470
转载 父类引用指向子类变量
public class X { int i =1; void method() { System.out.println("1"); } } class Y extends X { int i = 2; void method() { System.out.println("2"); } public static void main(String[] args)
2011-11-01 16:38:38 769
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人