मराठी

What will happen if break statement is not used in a switch case? Explain. - Computer Applications

Advertisements
Advertisements

प्रश्न

What will happen if break statement is not used in a switch case? Explain. 

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

उत्तर

In a switch statement, the break statement ends the block. If the break is not utilised, the control will continue to execute further cases within the switch block (fall through occurs).

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.08: Conditional Statements in Java - EXERCISES [पृष्ठ १००]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.08 Conditional Statements in Java
EXERCISES | Q V. 4. | पृष्ठ १००
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×