मराठी

In a switch statement, why is it necessary to use break after each case? - Computer Applications

Advertisements
Advertisements

प्रश्न

In a switch statement, why is it necessary to use break after each case? 

थोडक्यात उत्तर

उत्तर

  1. In a switch statement, the break statement terminates the block.
  2. If the break is not used, the control will keep on executing other cases under the switch block. 
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.08: Conditional Statements in Java - Review Insight [पृष्ठ ९७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.08 Conditional Statements in Java
Review Insight | Q 2. | पृष्ठ ९७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×