Can a switch case have multiple values?

The switch can includes multiple cases where each case represents a particular value . Code under particular case will be executed when case value is equal to the return value of switch expression. If none of the cases match with switch expression value then the default case will be executed.

Sizin İçin Seçtik  Which is the best course for Java in coursera?

Leave a Reply

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

Can a switch case have multiple values?

The switch can includes multiple cases where each case represents a particular value . Code under particular case will be executed when case value is equal to the return value of switch expression. If none of the cases match with switch expression value then the default case will be executed.

Sizin İçin Seçtik  Karargah bölüğü ne demek?

Leave a Reply

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