Can switch case have multiple conditions Java?

Switch Statement in Java A Java switch statement is a multiple-branch statement that executes one statement from multiple conditions . The switch statement successively checks the value of an expression with a list of integer (int, byte, short, long), character (char) constants, String (Since Java 7), or enum types.

Sizin İçin Seçtik  What is switch case with example?

Leave a Reply

Your email address will not be published. Required fields are marked *