Because 0234- this is the number Octal.
When you add a zero in front of a numeric constant, Java treats it as an Octal number .
If you convert it to decimal, then it is equal 156, dividing it by decimal 1001 (due to integer division).
source
share