A

Admin • 832.27K Points
Coach

Q. What is the visibility of an enum constructor in Java?

  • (A) public
  • (B) protected
  • (C) private or package-private
  • (D) Any access modifier
  • Correct Answer - Option(C)
  • Views: 33
  • Filed under category Java
  • Hashtags: Java Enums

Explanation by: Admin

Enum constructors are implicitly private or package-private to prevent external instantiation.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.