Multiple choice technology programming languages

In a Switch construct ,the default statement must be placed after all the case statements.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The default case in a switch statement can appear anywhere within the switch block, not necessarily at the end. The Java Language Specification explicitly allows this flexibility in positioning.