A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/java/java-lang-enum-class-java/ below:

Java.lang.Enum Class in Java - GeeksforGeeks

Java.lang.Enum Class in Java

Last Updated : 24 Nov, 2021

Enum class is present in java.lang package. It is the common base class of all Java language enumeration types. For information about enums, refer

enum in java

Class Declaration

public abstract class Enum<E extends Enum>
extends Object
implements Comparable, Serializable

As we can see, that Enum is an

abstract

class, so we

can not

create object of class Enum.

Methods in Enum Class

Enum class provides 10 useful methods. Most of them are overridden from

Object

class. These methods are declared as final in Enum class so the programmer cannot modify any of the enum constants.



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4