Differentiate Switch and if else statement?
Switch:
Switch statement uses single expression for multiple choices.
If all the cases are not matched default will be ****.
It test only for equality.
It evaluates only for character or integer
If-else:
If else statement uses multiple statement for multiple choices.
Nothing happens.
It tests for equality as well as for logical ‘ expressions.
any data type is allowed.