- A34 34
- B65 34
- C65 65
- D34 65
In Java programming, the primitive data type int
has a size of 4 bytes. This means it occupies 32 bits of memory. The int
data type is a signed integer type, and it can represent values in the range from -2,147,483,648 to 2,147,483,647 (inclusive). The range is calculated as
-231 to 231 -1
The default value for an int
variable is 0.