Q. If a negative value is used for an array index, ____. (Solved)
1. a NumberFormatException is thrown
2. the program terminates immediately
3. the last index of the array is automatically accessed instead
4. an IndexOutOfBoundsException is thrown
- d. an IndexOutOfBoundsException is thrown