You used octal notation for the last two. This is actually not unique to Java. If you have a leading zero in front of some integer, it will be counted in octal.
What is octal? This is a basic counting system. We humans use basic system 10 when we count from 0 to 9 and move on to the next digit every time we take step 9 in the previous digit. An octal is the same, except that rollover occurs when you walk past 7.
Consider the binary code, which is the base 2. Your numbers are 1 and 0, and step by step 1 will cause the digit in place to exceed the next step.
base2 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 base8 0000 0001 0002 0003 0004 0005 0006 0007 0010 0011 0012 0013 base10 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011 0012
source share