?

AP® Computer Science A

Free Version

Upgrade subject to access all content

Easy

Integer Maximum Value

APCSA-4KTPWN

In java, an int datatype is stored in 32 bits.

What is the maximum value for an int data type?

A

Approximately 24,642.

B

$2^8$ (2 raised to the 8th power).

C

Approximately 1.24 million.

D

Approximately 2.15 billion.

E

There is no maximum value.