Is integer size in java of fixed length or variable size?
ex: 1 or 10000 does both the number takes same space during allocation?
Here's the datasizes for the Java primitive types.
Interesting to note here is that the size of boolean is not clearly defined, but it's usually 8 bits.
boolean