![Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens? The compiler issues an error message. The compiler issues a warning message. An exception will be thrown when that statement is executed. Another variable or array will be unexpectedly modified.](https://matthew.maennche.com/wp-content/uploads/2013/12/java.jpg)
LANGUAGE: JAVA
CHALLENGE:
Suppose v is an array with 100 int elements. If 100 is assigned to v[100], what happens?
The compiler issues an error message.
The compiler issues a warning message.
An exception will be thrown when that statement is executed.
Another variable or array will be unexpectedly modified.
SOLUTION:
An exception will be thrown when that statement is executed
why is this the correct answer? i thought the compiler would give an an error message
Nope. Another variable or array will very likely be unexpectedly modified.