Say I have two integers, one in decimal the other in hexadecimal:
int myInt01 = 0xc7d23020;
int myInt02 = 3352440864;
The are both the same number, but when I try to assign the decimal integer to a variable in Java, I get the error:
error: integer number too large: 3352440864
But when I assign the hexadecimal integer to a variable in Java, everything works as it should.
Why is it this way?