Multiple choice

Which of the following is not a valid expression type in switch (expression)?

  1. Char

  2. Float

  3. Int

  4. Short

  5. Long

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

This is an invalid expression type in switch statement. Float and double are not allowed in switch-case.