public class Lautturi { public static void main(String[] args) { int i = 08; } }
The literal 08 of type int is out of range.
because there is no any number '8' in Octal.
In Java, if you are defining an int with a leading '0' denotes that you are defining a number in Octal.
Octal provides 0-7 numbers only.