Question DSA-ARR-0024
EasyWhich exception does Java throw when an array is accessed with an invalid index?
- A.
ArithmeticException
- B.
IndexError
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
Which exception does Java throw when an array is accessed with an invalid index?
ArithmeticException
IndexError
Sign up free to see the answer and a step-by-step explanation.
ArrayIndexOutOfBoundsException
NullPointerException