Add And Remove From Collections - Java Quiz Question


What will be the output of the following program?


A
[4][4, 3, 2][4, 3, 2][4, 3, 2, 1][4, 3, 2, 1][4, 6, 3, 2, 1][4, 3, 2, 1][4, 3, 1]
B
[4][4, 3, 2][3, 2][3, 2, 1][2, 1][2, 6, 1][2, 1][2]
C
[4][4, 3, 2][3, 2][3, 2, 1][3, 2, 1][3, 6, 2, 1][3, 2, 1][3, 2]
D
Compilation Error
E
Runtime Error