【题目】Integer i = new Integer (42)Long 1 = new Long (42)Double d = new Double (42.0)下列表达式结果为真的有()【答案】CE【分数】2分【选项】A、(i==1)B、(i==d)C、(i.equals(d)D、(d ==1E、(d.equals(i)F、(i.equals(42)这是为什么?
F:i是对象,而42不是对象类型,比较没有意义,比较的结果是假.错误 结果一 题目 Integer i = new Integer (42)Long 1 = new Long (42)Double d = new Double (42.0)下列表达式结果为真的有().【答案】CE【分数】2分【选项】A、(i ==1) B、(i == d) C、(i.equals (d)) D、(d == 1...
java小程序 、根据下面代码定义 Integer i = new Integer (42) Long L= new Long (42) Double d = new
2 3、根据下面代码定义 Integer i = new Integer (42) Long 1 = new Long (42) Double d = new Double (42.0)下列表达式结果为真的有( ). A.(i ==1) B.(i == d) C.(d == 1) D.(i.equals (d)) E、(D.equals (i)) F、(i.equals (42))能不能说明为什么要这样选 反馈...
Integer i = new Integer (42); Long 1 = new Long (42); Double d = new Double (42.0); Which two expressions evaluate to True? () A. (i ==1) B. (i == d) C. (d == 1) D. (i.equals ...
给定下列表达式IntegerI=newInteger(42);LongL=newLong(42);DoubleD=newDouble(42.0);则下列表达式输出为tru
Given: Integer i = new Integer (42); Long l = new Long (42); Double d = new Double (42.0); Which two expression evaluate to true?() A. (i = = l) B. (i = = d) C. (d = = ...
1 JAVA的equals方法问题求解?Integer i = new Integer (42)Long l = new Long (42)Double d = new Double (42.0)下列表达式结果为真的有( ).A、(i ==l)B、(i == d)C、(d == l)D、(i.equals (d))E、(d.equals (i))F、(i.equals (42))多选 哪个?为什么?忘记告诉大家,不过就是不知道...
JAVA的equals方法问题求解?Integer i = new Integer (42); Long l = new Long (42); Double d = new Double (42.0); 下列表达式结果为真的有( ).A、(i ==l)B、(i == d) C、(d == l)D、(i.equals (d)) E、(d.equals (i)) F、(i.equals (42))
Integer i = new Integer (42); Long 1 = new Long (42); Double d = new Double (42.0); Which two expressions evaluate to True? () A. (i ==1) B. (i == d) C. (d == 1) D. (i.equals (d)) E. (d.equals (i)) F. (...