Advertisements
Advertisements
प्रश्न
When does Fall through occur in a switch statement? Explain.
थोडक्यात उत्तर
उत्तर
- In a switch block with various cases, the control has to perform a specified case block based on the switch value.
- If no break is applied at the end of the case block, the control moves to the following case block for execution.
- 'Fall through' refers to the uncommon execution of several cases for a given switch value.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.08: Conditional Statements in Java - EXERCISES [पृष्ठ १००]