← 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?
- A.It must be public
- B.It can be called with new from any class
- C.It is always private (implicitly), so only the listed constants exist
- 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 →