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  Can you use Switch case with strings?

Leave a Reply

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