Articles related to the tag Switch

Learn more about Switch

The Switch Statement
 

The versatile switch statement is an alternative to the 'if' statement and has many possible executions. Along with some complex data types, the switch statement can be expressed with the int, short, byte or char primitive data types, and since Java 7, it works with the String class.