Email address:
Password:
SCJP/OCPJP 1.6 certification
Practice Exams and Training
SCJP Online Training » Discussions

String in the switch expression

Hello again, i think switch case also can be used with Strings

That's correct - since Java 7.


In Java 6 and earlier, you could only use byte, short, int, Byte, Short, Int, and enums.

thank you for the info

ExamLab © 2008 - 2024