A and B printing - Java Quiz Question


What will be the output of the following program?


A
ABABBB
B
ABBABB
C
ABBBBB
D
Compilation Error
E
Runtime Error - ClassCastException