0Which Java exception is thrown when an array is accessed using an index outside its valid range?ANullPointerExceptionBArrayIndexOutOfBoundsExceptionCArithmeticExceptionDClassCastException Correct answer: B Join the discussion Report an error Share