Switch Case in Java
The Java switch statement executes one statement from multiple conditions. It is like an if-else-if ladder statement. The switch statement works with byte, short, int, long, enum types, String, and some wrapper types like Byte, Short, Int, and Long. Since Java 7, you can use strings in the switch statement.