About 41,700 results
Open links in new tab
  1. Java Enums - W3Schools

    An enum is a special "class" that represents a group of constants (unchangeable variables, like final variables). To create an enum, use the enum keyword (instead of class or interface), and separate …

  2. Enumeration (or enum) in C - GeeksforGeeks

    Apr 8, 2026 · In C, an enumeration (or enum) is a user-defined data type that contains a set of named integer constants. It is used to assign meaningful names to integer values, which makes a program …

  3. Enumerated type - Wikipedia

    In fact, an enum type in Java is actually a special compiler-generated class rather than an arithmetic type, and enum values behave as global pre-generated instances of that class.

  4. enum — Support for enumerations — Python 3.14.4 documentation

    2 days ago · Modify the str() and repr() of an enum to show its members as belonging to the module instead of its class, and export the enum members to the global namespace.

  5. 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, Autumn, Winter. By default, the associated constant values of enum …

  6. Java Enums: Beyond the Basics

    Master enum in Java with practical examples covering fields, methods, EnumSet, EnumMap, interfaces, and real-world patterns like OrderStatus and Role.

  7. Enum (Java Platform SE 8 ) - Oracle

    More information about enums, including descriptions of the implicitly declared methods synthesized by the compiler, can be found in section 8.9 of The Java™ Language Specification.

  8. A Guide to Java Enums - Baeldung

    Jan 5, 2024 · A quick and practical guide to the use of the Java Enum implementation, what it is, what problems it solves and how it can be used to implement commonly used design patterns.

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

    Jan 17, 2011 · You should always use enums when a variable (especially a method parameter) can only take one out of a small set of possible values. Examples would be things like type constants …

  10. Enum - Complete Guide to Enums in All Programming Languages | enum

    Complete enum guide covering Java, Python, C/C++, C#, TypeScript, Rust, Go, and database enums. Learn enum best practices, serialization, naming conventions, and tools.