Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Java
10.5K+ articles
Java-Functions
4.1K+ articles
Difference Between
3.6K+ articles
Java Programs
1.9K+ articles
How To
1.8K+ articles
Java - util package
1.5K+ articles
Java-Collections
1.1K+ articles
Computer Subject
1.0K+ articles
java-interfaces
77+ articles
Java-Iterator
11+ articles
Java-Enumeration
17 posts
Recent Articles
Popular Articles
Converting a String to an Enum in Java
Last Updated: 13 February 2024
In Java, an enumeration, commonly known as Enum, is a special data type that allows us to define a fixed set of named values or constants. Enums provide a way to represent...
read more
Java
Java-Strings
Java Programs
Picked
Java-Enumeration
Java Examples
Java Program to Convert Enum to String
Last Updated: 17 June 2021
Given an enum containing a group of constants, the task is to convert the enum to a String.Methods:We can solve this problem using two methods:Using name() MethodUsing toS...
read more
Java
Java Programs
Picked
Java-String-Programs
Java-Enumeration
Get Enumeration over Java HashSet
Last Updated: 03 March 2021
The HashSet class implements the Set interface, backed by a hash table which is a HashMap instance. There is no assurance as to the iteration order of the set, which impli...
read more
Java
Java Programs
java-hashset
Picked
Java-Enumeration
How to Implement a Strategy Pattern using Enum in Java?
Last Updated: 12 September 2022
The strategy design pattern is intended to provide a way to choose from a variety of interchangeable strategies. Classic implementation includes an architecture to be impl...
read more
Java
Java Programs
Picked
Java-Pattern
Java-Enumeration
How To
Advantages and Disadvantages of using Enum as Singleton in Java
Last Updated: 22 February 2021
Enum Singletons are new ways of using Enum with only one instance to implement the Singleton pattern in Java. While there has been a Singleton pattern in Java for a long t...
read more
Java
Picked
Java-Enumeration
Java Program to Access All the Constant Defined in the Enum
Last Updated: 22 February 2021
An enum is a special class that represents a group of constants. To create an enum, use the enum keyword (instead of class or interface), and separate the constants with a...
read more
Java
Java Programs
Picked
Java-Enumeration
Java Program to Create ArrayList From Enumeration
Last Updated: 03 March 2024
Enumerations serve the purpose of representing a group of named constants in a programming language. Enums are used when we know all possible values at compile-time, such ...
read more
Java
Technical Scripter
Java-Collections
Java Programs
Java-ArrayList
Picked
Java-Enumeration
Technical Scripter 2020
Difference Between ordinal() and compareTo() in Java Enum
Last Updated: 02 February 2021
Enumerations serve the purpose of representing a group of named constants in a programming language. If we want to represent a group named constant then we should go for E...
read more
Java
Difference Between
Picked
Java-Enumeration
Java Program to Read Elements using Enumeration in Hashtable
Last Updated: 22 July 2021
The enumeration in java is one of the predefined interfaces, whose object is used for retrieving the data from collections framework variable(like Stack, Vector, HashTable...
read more
Java
Java-Collections
Java Programs
Java-HashTable
Picked
Java-Enumeration
Enumerate through a Vector using Java Enumeration
Last Updated: 07 January 2021
In the Java Enumeration class, all the listed constants are public, static, and final by default. Now after creating a Vector if we want to enumerate through the Vector th...
read more
Java
Technical Scripter
Java Programs
Picked
Java-Vector
Java-Enumeration
Technical Scripter 2020
Java Program to Define Ordinal() Method Using Enum Concept
Last Updated: 27 November 2020
Java enum, also called Java enumeration type, is a type whose fields consist of a fixed set of constants.The java.lang.Enum.ordinal() tells about the ordinal number(it is ...
read more
Java
Technical Scripter
Java Programs
Picked
Java-Enumeration
Technical Scripter 2020
Enumeration Interface In Java
Last Updated: 15 December 2021
java.util.Enumeration interface is one of the predefined interfaces, whose object is used for retrieving the data from collections framework variable( like Stack, Vector, ...
read more
Java
Java-Enumeration
Enumeration vs Iterator vs ListIterator in Java
Last Updated: 02 September 2020
Enumeration is an interface. It is used in the collection framework in java to retrieve the elements one by one. Enumeration is a legacy interface that is applicable only ...
read more
Java
Computer Subject
Difference Between
Java-Iterator
Java-Enumeration
How to implement an Interface using an Enum in Java
Last Updated: 21 June 2020
Enumerations serve the purpose of representing a group of named constants in a programming language. For example, the 4 suits in a deck of playing cards may be 4 enumerato...
read more
Java
java-interfaces
Java-Enumeration
Write From Home
How To
Enumeration asIterator() Method in Java with Examples
Last Updated: 27 June 2019
An object that implements the Enumeration interface generates a series of elements, one at a time. The asIterator() method of Enumeration used to return an Iterator that t...
read more
Java
Java - util package
Java-Functions
Java-Enumeration
1
2
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !