Give an example of fall through in Java
Answers
Answered by
2
When the variable being switched on is equal to a case, the statements following that case will execute until a break statement is reached. When a break statement is reached, the switch terminates, and the flow of control jumps to the next line following the switch statement. Not every case needs to contain a break.
Answered by
2
Hi friend how are you
I think this is helpful for you
Attachments:
Similar questions