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  Büyük harfle yapılan kısaltmalardan sonra gelen ekleri ayırmada ne kullanılır?

Leave a Reply

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