Question: Consider the following code segment. int n1 = Integer MAX _ VALUE int n2 = Integer. MIN _ VALUE int result = n1 + n2.
Consider the following code segment. int n1 = Integer MAX _ VALUE int n2 = Integer. MIN _ VALUE int result = n1 + n2. System out. println (result): What will be printed as a result of printing the segment? (A) -1 (B) 0 (C) 1 (D) compile error indicating that the integer number is too large (E) An Arithmetic Exception error message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
