McqMate
| Q. |
If a negative value is used for an array index, ____. |
| A. | a NumberFormatException is thrown |
| B. | the program terminates immediately |
| C. | the last index of the array is automatically accessed instead |
| D. | an IndexOutOfBoundsException is thrown |
| Answer» D. an IndexOutOfBoundsException is thrown | |
View all MCQs in
Java ProgrammingNo comments yet