what is switch case in java
Answers
Answered by
2
Advertisements. 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.
Answered by
0
Answer:
hey
Explanation:
Switch statement in C tests the value of a variable and compares it with multiple cases. ... Each case in a block of a switch has a different name/number which is referred to as an identifier. The value provided by the user is compared with all the cases inside the switch block until the match is found.
hope it helps
mark as brainlist
Similar questions