when put 08 in array then it shows a error "The literal 08 of type int is out of range"
Asked
Active
Viewed 60 times
-1
coder
- 7,778
- 15
- 37
- 52
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
- 66,225
- 20
- 144
- 202