1.

What are the characteristics of Switch?

Answer»
  • Supports all kinds of data and CHECKS for equality.
  • When a case is matched, the program exits from the switch and does not continue to check.
  • Switch statements MUST be exhaustive, and you must cover all possible VALUES for the variable.
  • No break is required because there is no FALLTHROUGH.


Discussion

No Comment Found