You are given an enum Zodiac with 12 constants:
public enum Zodiac {
ARIES,
TAURUS,
GEMINI,
CANCER,
LEO,
VIRGO,
LIBRA,
SCORPIO,
SAGITTARIUS,
CAPRICORN,
AQUARIUS,
PISCES
}Here, two references to enum Zodiac fields were created:
Zodiac capricorn = Zodiac.CAPRICORN;
Zodiac leo = Zodiac.LEO;Let's run the program with each of the following code lines.
Match them with the result they produce.