-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
  • 7,778
  • 15
  • 37
  • 52

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
  • 66,225
  • 20
  • 144
  • 202