What happens if you try to access an index outside the bounds of an array in Java?
If you try to access an index outside the bounds of an array, a `java.lang.ArrayIndexOutOfBoundsException` is thrown.
Well done! You've correctly identified the exception that occurs when accessing an invalid index.
Can you explain how you would handle such exceptions using `try-catch` blocks?