Question PRG-JAVA-0021
HardWhat is the output of this program?
public class Main {
public static void main(String[] args) {
Integer a = 127, b = 127;
Integer c = 128, d = 128;
System.out.println((a == b) + " " + (c == d));
}
}
- A.
false false
- B.
false true
- C.
Sign up free to see the answer and a step-by-step explanation.