论坛首页 入门讨论版 OO

JAVA 很容易做错的一道题!!!!!!!!

浏览 207 次
该帖已经被评为新手帖
作者 正文
时间:2008-03-21 关键字: java!!!!!
public class TT {

/**
* @param args
*/
public static void main(String[] args) {
int a=0;
Integer b=0;
Integer c=new Integer(0);
Integer d=new Integer(0);


System.out.println(a==b);
System.out.println(a==c);
System.out.println(a==d);

System.out.println(b==c);
System.out.println(b==d);
System.out.println(c==d);
}

}
   
论坛首页 入门讨论版 OO

跳转论坛:
JavaEye推荐