Delete Elements From List - Java Quiz Question


What will be the output of the following program?


A
X 1 Y 2 2 X 3
B
1 X 2 Y 3 X 2
C
X X X Y X X X
D
Some other output
E
Compilation Error or Runtime Error