Enumerated types have this method, which returns the position of an enum constant in the declaration list. A. toString B. position C. ordinal D. location
ordinal method returns the position of an enum constant from the declaration list. You can find the attached picture which shows the prototype of ordinal method taken from official documentation of Java.