ICSE Class 10 Computer Applications Question 75 of 76

Revising Basic Java Concepts — Question 9

Back to all questions
9
Question

Question 9

Which clause is optional in a switch statement?

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

default

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