-1

enter image description here

when put 08 in array then it shows a error "The literal 08 of type int is out of range"

coder
  • 8,346
  • 16
  • 39
  • 53

1 Answers1

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