How big is an int in Java?

int is 4 bytes with min value of -2,147,483,648 and max value of 2,147,483,647.

int is 4 bytes with min value of -2,147,483,648 and max value of 2,147,483,647:

// -2147483648
System.out.println(Integer.MIN_VALUE);

// 2147483647
System.out.println(Integer.MAX_VALUE);

// 1111111111111111111111111111111
System.out.println(Integer.toBinaryString(Integer.MAX_VALUE));

// ^^^
// 1111111111111111111111111111111 = 32 bits
// 1 byte = 8 bits
// 32 / 8 = 4 bytes