Switch Statement in Java
Multiple condition, executes one statement that is called switch statement.
Example 2: Simple Check Vowel or Consonant
Example 3: Check Vowel or Consonant by the user input
Switch Statement is Fall Through
Switch statement is fall-through. It means it executes all statements after the first match if a break statement is not present.
Nested Switch Statement in Java
We can use switch statement inside other switch statement in Java. It is known as nested switch statement.