Switch example to print week days81 - Java Quiz Question


What will be the output of the following program.


A
Weekend
B
Compilation Error - since no case matches day 15
C
Runtime Error - since day can be maximum of 7
D
Monday
Tuesday
Wednesday
Thursday
Friday
Weekend