English

When does Fall through occur in a switch statement? Explain. - Computer Applications

Advertisements
Advertisements

Question

When does Fall through occur in a switch statement? Explain. 

Answer in Brief

Solution

  1. In a switch block with various cases, the control has to perform a specified case block based on the switch value.
  2. If no break is applied at the end of the case block, the control moves to the following case block for execution.
  3. 'Fall through' refers to the uncommon execution of several cases for a given switch value. 
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. 5. | Page 100
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×