Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 2: Using Objects
Start Practice TestPractice Test
About Exam
hard

Integer Multiplication Overflow

Mark
< Prev
Next >

What is printed when the following code segment is executed?

int a = Integer.MIN_VALUE;
int b = -1;
int result = a * b;
System.out.println(result);

A

2147483647

B

-2147483648

C

0

D

2147483648

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Not enough data yet to show leaderboard.

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Privacy Policy|