English

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

Advertisements
Advertisements

Question

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

Answer in Brief

Solution

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
  Is there an error in this question or solution?
Chapter 1.08: Conditional Statements in Java - EXERCISES [Page 100]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.08 Conditional Statements in Java
EXERCISES | Q V. 4. | Page 100
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×