ritu has written a program in java using switch statement. when she executed the programs, the output of all the cases came together. which statement is missing in the program? help her.
Answers
Answered by
1
she must've mistook the syntax, check the syntax and thorough some java programs in which the switch statement is used.
Answered by
2
Ritu is stupid...as she did not put the break statement at the end of each loop....which resulted in a fall through...and she got the output of all the cases...
Hope this helps you...
Thnxx alot....;-))
---------------------****************---------------
anmoldeepsukhra:
thnx
Similar questions
English,
7 months ago
Biology,
7 months ago
Social Sciences,
7 months ago
Math,
1 year ago
Science,
1 year ago