What is the visibility of an enum constructor in Java?
Correct answer
private or package-private
Explanation
Enum constructors are implicitly private or package-private to prevent external instantiation.
Update: Admin added a tag on this question
Topics
By Admin · · 45 views