What is a switch 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  Can you use equals in Java?

Leave a Reply

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