Is it ok to write many lines of code in each SWITCH CASE
OR
for such a situation one must use an IF statement ?
The program works in both scenarios but what is the best practise Or what is followed in industry ?
Thanks.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rafnas T PRank #280 · 8.8K reputationPosted Jul 27, 2017, 11:21 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Jul 28, 2017, 1:42 AM EDT
Raghav Jhavar57 reputationPosted Jul 28, 2017, 2:04 AM EDT
Rajkiran SwainRank #165 · 14.4K reputationPosted Jul 28, 2017, 2:13 AM EDT