what is switch case statement in java
Answers
Answered by
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
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.
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