54,200 results
Open links in new tab
  1. Java Enums - W3Schools

    To create an enum, use the enum keyword (instead of class or interface), and separate the constants with a comma. Note that they …

  2. enum in Java - GeeksforGeeks

    May 27, 2026 · We can combine enums with regular classes to organize your program logic. An enum can be a member variable in a …

  3. Enumerated type - Wikipedia

    Unlike C++, Java enums are first-class citizens like any other class and can have methods, constructors, and fields. Enum members …

  4. What are enums and why are they useful? - Stack Overflow

    Jan 17, 2011 · Enums are not only the best way to create singletons in Java (so far), but the officially encouraged way. If you want …

  5. What Are Enums (Enumerated Types) in Programming, And Why Are …

    May 18, 2021 · Enums, or enumerated types, are a list of constant values with developer-friendly names. They're used in …

  6. Enumeration types - C# reference | Microsoft Learn

    Jan 14, 2026 · To define an enumeration type, use the enum keyword and specify the names of enum members: Spring, Summer, …

  7. Enumeration (or enum) in C - GeeksforGeeks

    Jul 18, 2026 · Enums improve code readability and maintainability by replacing numeric values with descriptive names. Here, the …

  8. C# Enums - W3Schools

    C# Enums An enum is a special "class" that represents a group of constants (unchangeable/read-only variables). To create an …

  9. C# Enumerations - C# | Microsoft Learn

    Apr 13, 2026 · Learn how to define and use enumeration types in C#, including declaring enums, using them in switch expressions, …

  10. Enums - Oracle

    Enum types provide high-quality implementations of all the Object methods. They are Comparable and Serializable, and the serial …