print characters by using Switch - Java Quiz Question


What will be the output of the following program?


A
abcd
B
a
C
aa
D
ab
E
Compilation Error or Runtime Error