Vidyalelo
Java Programming · Q27

Flow Control

Programming · Java Programming · question 27

Q27

In Java, what does the "default" case in a "switch" statement do?

A.
Indicates the end of the switch statement
B.
Repeats the switch statement
C.
Provides a block of code to execute when none of the cases match
Answer
D.
Throws an exception

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board