Computer Science, asked by shaktiswaroopnayak98, 5 months ago

what is the diffrrence between switch case statement and menu driven statement in java?​

Answers

Answered by JaiMatadiSarthak
2

Answer:

It is either if-statement will be executed or else-statement is executed. Switch case statement executes one case after another till a break statement appears or until the end of switch statement is reached. If the condition inside if statements is false then by default the else statement is executed if created.A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case.

Similar questions