what is fall through statement in java?
Answers
Answered by
39
A switch case used without break statement is called fall through
Hope it helps
Hope it helps
Answered by
81
Fall through is a situation in java program takes place when the loop misses out a break statement between the different cases.
Explanation:
The following general rule in fall through the behavior of switch statement.
- The switch statement terminates, whenever it reaches a break statement, and the action jumps to the line after the switch statement.
- In a switch statement if no break appears, then the control will fall through to subsequent cases till it hit a break statement in the loop.
Similar questions