A

Admin • 833.24K Points
Coach

Q. Which method is implicitly overridden in every enum constant?

  • (A) toString()
  • (B) hashCode()
  • (C) equals()
  • (D) compareTo()
  • Correct Answer - Option(A)
  • Views: 35
  • Filed under category Java
  • Hashtags: Java Enums

Explanation by: Admin

The `toString()` method is overridden to return the name of the enum constant by default.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.