Multiple choice

The size of an int is

  1. 16 bit

  2. 32bit

  3. 64bit

  4. 8bit

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In Java, the int primitive type is consistently 32 bits (4 bytes) across all platforms, ensuring portability. The options present different bit sizes, with 32-bit being the standard Java int size. Other languages like C/C++ may have variable int sizes depending on the platform, but Java specifies this precisely.