All are integers , but ...
1 is decimal
0 is decimal
01 is octal
00 is octal
From the Java Language Specification (highlighted by me):
Note that octal digits always consist of two or more digits; 0 is always considered a decimal digit , but this is not very important in practice, since the numbers 0, 00 and 0x0 represent exactly the same integer value.
source
share