When is a switch statement better than multiple if statements?
The switch statement is a better option than multiple if statements when you are just giving the input directly without actually doing any condition checking in the statements.
BY Best Interview Question ON 12 Sep 2020