🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Java Enums: all 10 questions

Quiz: Java Enums · Question 3 of 10

Which statement about an enum's constructor is true?

Which statement about an enum's constructor is true?

  1. A.It must be public
  2. B.It can be called with new from any class
  3. C.It is always private (implicitly), so only the listed constants exist
  4. D.Enums cannot have constructors
Answer & explanation

Correct answer: It is always private (implicitly), so only the listed constants exist

Each constant calls the constructor once; no other code can create enum objects.

Can you get the rest right without peeking?

Take the timed Quiz: Java Enums quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →