Which data type Cannot be used in switch Java?

The switch statement doesn’t accept arguments of type long, float, double,boolean or any object besides String .

Sizin İçin Seçtik  Is switch in Java case-sensitive?

Leave a Reply

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