019-001-004
Basic Exception Handling: Array Access
Hard
Problem Description
ArrayIndexOutOfBoundsException
In this problem, you will create a program that attempts to access an out-of-bounds index of an array, catches the resulting ArrayIndexOutOfBoundsException using a try-catch block, and displays the error message to standard output.
This exception occurs when accessing outside array bounds. Handle safely with try-catch.
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up