when put 08 in array then it shows a error "The literal 08 of type int is out of range"
Asked
Active
Viewed 61 times
-1

coder
- 8,346
- 16
- 39
- 53

Sudhanshu yadav
- 1
- 2
-
[Java Octal Literals tutorial](http://www.javacjava.com/OctalLiterals.html). – rgettman May 03 '18 at 16:17
-
I just goggle for 'java 08' and got the answer right away. – Jose Martinez May 03 '18 at 16:17
1 Answers
1
Integer literals starting with 0
in Java are parsed as octal, and 0-7 are the only valid octal digits.

Michael Berry
- 70,193
- 21
- 157
- 216