Java guarantees the exact memory size and value range of every primitive type on every operating system. Unlike C or Python, an int is always 32 bits whether you run on a phone or a server.
More lessons in Complete Core Java