KnowledgeBoat Logo
|

Computer Applications

Which clause is optional in a switch statement?

  1. switch
  2. case
  3. default
  4. none of the above

Java Conditional Stmts

11 Likes

Answer

default

Reason — The default clause is optional and, if it is missing, no action takes place if all matches fail.

Answered By

6 Likes


Related Questions