Question PRG-JAVA-0065
HardWhat is the output of this program?
public class Main {
public static void main(String[] args) {
long big = Integer.MAX_VALUE + 1;
long ok = Integer.MAX_VALUE + 1L;
System.out.println(big + " " + ok);
}
}
- A.
2147483648 2147483648
- B.
-2147483648 -2147483648
- C.
Sign up free to see the answer and a step-by-step explanation.