Which of the following are true? (Choose all that apply)
An array in Java does not override equals() and so we cannot use equals method on array to compare two array objects.
ArrayList does override equals() and equals method returns true if two array list object have the same elements in the same order.
The compiler does not know when an index is out of bounds.
The code will throw an exception at runtime, though.