Variables used in a switch statement can be used with which datatypes?
Long Answer
Views 983
Answer:
Variables used in a switch statement can only be a string, enum, byte, short, int, or char.
Related Articles:
This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of Java Programming Language, click the links and dive deeper into this subject.
Join Our telegram group to ask Questions
Click below button to join our groups.