Which is the valid definition of the Course enum?

Given the code fragment:

Which is the valid definition of the Course enum?
A.

B.

C.

D.

Download Printable PDF. VALID exam to help you PASS.

4 thoughts on “Which is the valid definition of the Course enum?

  1. D

    A & C – Illegal modifier for the enum constructor; only private is permitted
    B – The static field EnumsTest.cost should be accessed in a static way. Cannot refer to the static enum field EnumsTest.cost within an initializer

Leave a Reply

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


The reCAPTCHA verification period has expired. Please reload the page.