Can we use or condition in switch case in Java?

No. It’s not possible because a case must be a constant expression.

Sizin İçin Seçtik  How many case labels can be in a single switch in Java?

Leave a Reply

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