About 9,800 results
Open links in new tab
  1. Java enum & enum Class (With Examples) - Programiz

    Java enum is a set of constant values. In this tutorial, we will learn about enums and enum class in Java. We will also learn about different methods of Java enum.

  2. 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.

  3. 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 …

  4. enum in Java - GeeksforGeeks

    Oct 9, 2025 · We can combine enums with regular classes to organize your program logic. An enum can be a member variable in a class, and methods can perform actions based on the enum value.

  5. Enum Types (The Java™ Tutorials > Learning the Java Language > Classes

    In the Java programming language, you define an enum type by using the enum keyword. For example, you would specify a days-of-the-week enum type as: SUNDAY, MONDAY, TUESDAY, …

  6. Java Enum Class - Complete Tutorial with Examples - ZetCode

    Apr 13, 2025 · Complete Java Enum class tutorial covering all methods with examples. Learn about enum constants, values, valueOf and other Enum class methods.

  7. Java Enum Constructor and Methods (with Examples) - HowToDoInJava

    Oct 3, 2023 · Java enum example. The purpose of enum is to enforce compile time type safety. Learn enum constructors, methods, inheritance, EnumMap and EnumSet etc.

  8. Java Enums Complete Guide with Examples - webreference.com

    Learn Java enums including basic enums, enums with fields and methods, abstract enum methods, enum implementations, and real-world enum design patterns.

  9. Enum in Java: Java Enumeration Class with Examples - Intellipaat

    Jul 22, 2025 · Enums in Java are a way to group constant values together, like days of the week, colors, or directions. Instead of using plain strings or numbers, enums make your code cleaner, safer, and …

  10. Enum in Java – Definition, Usage, and Examples

    Aug 26, 2025 · Enums were introduced in Java 5 (JDK 1.5) as a way to define a collection of named constants in a type safe manner. Unlike enums in older languages (like C or C++), Java enums are …