Computer Science, asked by Prabudh0071, 1 year ago

what is fall through statement in java?

Answers

Answered by uashenoy05
39
A switch case used without break statement is called fall through

Hope it helps
Answered by smartbrainz
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