If else if ladder output - Java Quiz Question


What will be the output of the following program?


A
Pass
B
Distinction
Congratulations
Pass
C
Distinction
Congratulations
D
Distinction
E
Compilation Errors