[HD-OCP17/21-Fundamentals Pg 293, Sec. 12.3.4 - using-switch-with-enums]

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
raphaelzintec
Posts: 167
Joined: Sun Apr 21, 2024 10:43 am
Contact:

[HD-OCP17/21-Fundamentals Pg 293, Sec. 12.3.4 - using-switch-with-enums]

Post by raphaelzintec »

case MONDAY: TUESDEY: System.out.println("MON/TUE"); break;

-> "TUESDAY" not "TUESDEY"

because below you mention nothing about this "TUESDEY"
"Now, for TUESDAY, do you see a matching case? No. TUESDAY: is not a case statement. TUESDAY is just a label applied to the print statement."

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: [HD-OCP17/21-Fundamentals Pg 293, Sec. 12.3.4 - using-switch-with-enums]

Post by admin »

Right. Should be fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 31 guests