Java: Switch Case Statement
Java: Switch Case Statement
The switch statement is a decision-making statement, also called a multi-way branch statement. It provides an easy way to jump execution to different parts of code based on the case value match with expression. This expression result allowed type as byte, short, char, and int primitive data types.
Note: After java 7+, it also allowed to work with enumerated types ( Enums in java), the String…
View On WordPress




















