Which of the following are true?
Choose all that apply
B, C.
An array does not override equals()
and so uses object equality.
ArrayList does override equals()
and defines it as the same elements in the same order.
The compiler does not know when an index is out of bounds and thus can't give you a compiler error.
The code will throw an exception at runtime, though.