单项选择题
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. (i.equals (42))
点击查看答案
相关考题
- 单项选择题 public class test ( public static void main (String args) { int i = 0xFFFFFFF1; int j = ~i; } ) What is the decimal value of j at line 5?()
- 单项选择题 Consider the following class: class Test(int i) { void test(int i) { System.out.println(“I am an int.”); } void test(String s) { System.out.println(“I am a string.”); } public static void main(String args) { Test t=new Test(); char ch=“y”; t.test(ch); } } Which of the statements below is true?()
- 单项选择题 Howcanyouforcegarbagecollectionofanobject?()
- 多项选择题 Choosethethreevalididentifiersfromthoselistedbelow.()