Java · Medium · ProWhat are enums in Java? Can enums have methods, constructors, and fields? Provide examples.JavaCore Java