What will happen if you try to access an array element outside its bounds in Java?
If you try to access an out-of-bounds index, the array will automatically resize to accommodate the new index.
Hmm, thatâ€™s not correct. Arrays in Java have fixed sizes and cannot resize automatically.
Can you think of another data structure in Java, like an ArrayList, that allows dynamic resizing?