About 164,000 results
Open links in new tab
  1. 16.1. Introduction to Enums — Java Web Development documentation

    Many statically-typed programming languages provide a feature called enumeration types, or enum types for short. Enum types are special classes that should have only one of a set of fixed values, …

  2. Understanding Enums in Java: Why They’re More Than Just ... - Medium

    Oct 28, 2024 · What is an Enum in Java? At a basic level, an enum (short for “enumeration”) is a special Java type used to define collections of constants.

  3. Attaching Values to Java Enum - Baeldung

    Nov 13, 2025 · Given those limitations, the enum value alone is not suitable for human-readable strings or non-string values. In this tutorial, we’ll use the enum features as a Java class to attach the values …

  4. What is an enum in Java? - Educative

    Oct 28, 2025 · An enum is a programming construct that is available in most programming languages. In this blog, we'll see what makes enums useful, how to use an enum in your code, and when not to …

  5. Beginner's Guide to Java eNum - Crunchify

    Jul 17, 2023 · When you need a predefined list of values which do represent some kind of numeric or textual data, you should use an enum. You should always use enums when a variable (especially a …

  6. Enum (Java SE 17 & JDK 17) - Oracle

    This is the common base class of all Java language enumeration classes. More information about enums, including descriptions of the implicitly declared methods synthesized by the compiler, can be …

  7. Enums - How to Program with Java - Java Tutorial - Coders Campus

    Enums is a neat topic that applies to most programming languages (not just Java)! What is an Enum? It's short for Enumerated Type, which just means that Java allows you to define your own special …

  8. Fundamentals of Java Enum Types - SitePoint

    Mar 27, 2017 · Java enum types make it easy to define a fixed number of constants. More than that, enums are full-blown classes and can have fields and methods.

  9. Enums :: CIS 308 Textbook

    Sep 28, 2022 · When you declare an enum type, what you’re really doing is making the enum values into integer constants. For example, in the medal enum, we’re really creating the integer constants:

  10. Effective use of enums in API design - Appwrite

    Feb 28, 2024 · Enums, short for enumerations, are a data type that allows a variable to be one of a predefined set of values. These values are usually identifiers, making enums significantly different …