About Question enthuware.ocpjp.v21.2.4010 :

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

Moderator: admin

Post Reply
therealabderrahim
Posts: 1
Joined: Fri May 02, 2025 9:13 pm
Contact:

About Question enthuware.ocpjp.v21.2.4010 :

Post by therealabderrahim »

The second option is incorrect as the constructor is declared with the name Transformer2 while the name of the enum is Transformer. I don't know why the explanation says it's a legally valid code.

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

Re: About Question enthuware.ocpjp.v21.2.4010 :

Post by admin »

You are right. The constructor should be named Transformer instead of Transformer2. But the option is still incorrect and the explanation is correct assuming the typo in the name of the constructor is fixed.
thank you for your feedback!

Post Reply

Who is online

Users browsing this forum: No registered users and 97 guests