Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 2
How the output is 4?
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.
+ 3
Bcz of fall through,,send me java bro