Question:What is the output of the given program?
public class Test106 { public static void main(String[] args) { Integer x = 0; Integer y = 0; Integer a = 1000; Integer b = 1000; System.out.println( (a==b) + "; " + (x==y) ); } }
A The code will not compile, because Integer is a class, and an object must be created by calling its constructor: Integer a = new Integer(1); or, alternatively, a primitive type must be used: int a = 1;
B true; true
C false; false
D alse; true
+ AnswerD
+ Report