Computer Science, asked by Anonymous, 1 month ago

what is switch case in java​

Answers

Answered by madhumitha4687
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 shreyakaran2007
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