Question 6
Back to Exercise
A matching case has no break. What happens after its statements run?
- A The switch ends
- B Execution continues into the next case's statements (fall-through) Correct
- C The default case runs
- D A compile error
Correct Answer: Option B
Case labels are only entry points. Without break control falls through to whatever follows, until a break or the end of the switch.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!