int m = Math.max(-4, -9);
System.out.println(m);What is printed?
- A
9
- Bcheck_circle
-4
- C
-9
- D
4
Explanation
Math.max returns the greater of its arguments; -4 > -9, so the result is -4.
AP Computer Science A· difficulty 2/5
int m = Math.max(-4, -9);
System.out.println(m);What is printed?
9
-4
-9
4
Explanation
Math.max returns the greater of its arguments; -4 > -9, so the result is -4.
Want 10 more like this — adaptive to your weak spots?