If a negative value is used for an array index, ____.

A. a NumberFormatException is thrown
B. the program terminates automatically without throwing an exception
C. the last index of the array is automatically accessed instead
D. an ArrayIndexOutOfBoundsException is thrown


Answer: D

Computer Science & Information Technology

You might also like to view...

If you send the right message to the wrong object, Alice will automatically resend the message to the right object.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

________ is a program with which you can schedule regular hard disk maintenance tasks

Fill in the blank(s) with correct word

Computer Science & Information Technology

________ is a professional social networking site on which you post your professional profile and resume, connect with colleagues, and seek advice from experts.

a. Facebook b. LinkedIn c. MySpace d. Twitter

Computer Science & Information Technology

When converting fields in an interactive form to buttons, it is a good idea to let InDesign automatically name the buttons.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology