Computer Science, asked by tiyasadas7084, 1 year ago

What happens during execution if an negative value is used for an array index?

Answers

Answered by writersparadise
1

The IndexOutOfBoundsException() class is performed.


If a negative value is used for an array index, then the IndexOutOfBoundsException() class is performed during execution of the program. This function takes a string as its input parameter and returns the message to be displayed. If no input parameter is specified, then no message is displayed.
Similar questions