Multiple Choice Question

Quiz Guidelines

 

QID: 
132
Question: 

Consider the following lines of code:

Integer i = new Integer(42);
Long ln = new Long(42);
Double d = new Double(42.0);

Which of the following options are valid?

Select 3 options

A. i == ln;
B. ln == d;
C. i.equals(d);
D. d.equals(ln);
E. ln.equals(42);

Q&A Set: