Switch statement provides easy way to dispatch execution to different parts of code - Core Java

Q.  Which statement provides an easy way to dispatch execution to different parts of your code based on the value of an expression?
- Published on 21 Jul 15

a. If
b. Switch
c. Nested-if
d. if-else-if

ANSWER: Switch

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)