Collections creating Array list - Java Quiz Question


What will be the output of the following program?


A
[M, E, R, I, T]
B
[M, E, R, I, T][M, E]
C
[M, E, R, I, T][R, I, T]
D
[M, E, R, I, T][M, E, R, I, T]
E
Compilation Error or Runtime Error