Question: what is difference between nested and switch case?
Answer: The switch statement is easy to edit as it has created the separate cases for different statements whereas, in nested if-else statements it becomes difficult to identify the statements to be edited.