D

Dhruva Jagannath • 660 Points
Invincible

Q. How is an enum constructor called?

  • (A) By new keyword
  • (B) Automatically by the JVM for each constant
  • (C) Manually by the programmer
  • (D) By reflection
  • Correct Answer - Option(B)
  • Views: 30
  • Filed under category Java
  • Hashtags: Java Enums

Explanation by: Dhruva Jagannath

The JVM automatically invokes the enum constructor once per constant.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.