English

The absence of which statement leads to fall through situation in switch case statement? - Computer Applications

Advertisements
Advertisements

Question

The absence of which statement leads to fall through situation in switch case statement?

Options

  • Continue

  • Break

  • Return

  • System.exit(0)

MCQ

Solution

Break

Explanation:

The break is a jump statement that terminates the switch case block. In its absence, the flow of control falls through the following cases of the matching case.

shaalaa.com
Introduction of Conditional Statements in Java
  Is there an error in this question or solution?
2022-2023 (March) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×