toString() method is overridden in java.lang.Enum class,which returns enum constant name. *; import java.awt.event.
There is a special subset of constant enum members that aren’t calculated: literal enum members. So, both the following mappings are true to enums: name -> value, and value -> name. Here, we can define an enum either inside the class or outside the class. Así que intenté: import java.awt. enum can implement many interfaces.