Consider the following code: What will be printed?
public class newIntegerLong{
public static void main(String[]args){
Integer nA = new Integer(4096);
Long nB = new Long(4096);
if(nA.equals(nB))
System.out.println("LongEqualsInteger.");
if(nA.intValue() == nB.longValue()){
System.out.println("If you create new primitive values of Long(4096)
and Integer(4096), then == true.");
}}}
A. LongEqualsInteger.
B. If you create new primitive values of Long(4096) and Integer(4096),then == true.
C. LongEqualsInteger. If you create new primitive values of Long(4096)
and Integer(4096), then == true.
D. If you create new primitive values of Long(4096) and Integer(4096),then == true.
E. Nothing will be printed.