Casting and Ranges of Variables

AP Computer Science A· difficulty 4/5

<code>int</code> in Java is a 32-bit signed integer with maximum value

  • A

    2³² − 1

  • B

    2³¹ − 1 ≈ 2.15×10⁹

    check_circle
  • C

    65,535

  • D

    2¹⁵

Explanation

Range: −2³¹ to 2³¹ − 1 (= 2,147,483,647).

Want 10 more like this — adaptive to your weak spots?

Related questions