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