Computer Science, asked by Sahana23, 1 year ago

what is switch case statement in java

Answers

Answered by karlaleggettoyp7lv
6
A switch statement allows a variable to be tested for equality against a list of values. Each value is called an acase, and the variable being switched on is checked for each case.
Answered by AshmitJain3107
6
Switch Case is a conditional statement in Java which is used to check various cases in the program to execute the program.
If the user input or the value of the switch variable does not matches the value in the various cases present in the program , the program will not execute.
Similar questions