How the output is 4? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
15th Apr 2021, 3:24 AM
Manash Saikia [ 45% Active ]
Manash Saikia [ 45% Active ] - avatar
2 Answers
+ 4
You do not have a break statement, so each case from the matching case will be executed. As rightly mentioned it is called fall through.
15th Apr 2021, 5:09 AM
Avinesh
Avinesh - avatar
+ 3
Bcz of fall through,,send me java bro
15th Apr 2021, 3:33 AM
Danny Wanyoike
Danny Wanyoike - avatar