Question discussion

Which Java exception is thrown when an array is accessed using an index outside its valid range?

368Medium DSSSB TGT Computer Science 0 replies 1 views
0
Which Java exception is thrown when an array is accessed using an index outside its valid range?
  • ANullPointerException
  • BArrayIndexOutOfBoundsException
  • CArithmeticException
  • DClassCastException
Correct answer: B

Discussion 0

Nobody has replied yet. Start the discussion!