Worked example
enum Day { MON, TUE, WED }
Day d = Day.MON;
System.out.println(d); // MON
System.out.println(d == Day.MON); // true
System.out.println(d == Day.TUE); // false
Using an enum instead of loose int codes or Strings means the compiler checks that only real, valid values are used.