What happens during execution if an negative value is used for an array index?
Answers
Answered by
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
India Languages,
8 months ago
Physics,
1 year ago