What is the output of the below given code ?
public enum WeekDays
public class Demo
public static void Main()
CompareTo() method belongs to the Enum class. An enum is derived from the Enum class. Since since Monday is less than Tuesday the output is -1.
Back To Top