08 not a valid integer literal in java

https:/‮l.www/‬autturi.com
08 not a valid integer literal in java
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.

Created Time:2017-09-17 14:04:40  Author:lautturi