Question: what is the difference between if statement and case statement?
Answer: if-else statement uses multiple statement for multiple choices. ... switch statement execute one case after another till a break statement is appeared or the end of switch statement is reached. Default Execution. If the condition inside if statements is false, then by default the else statement is executed if created.