Multiple choice

The superclass for all enumerations in java known as

  1. java.lang.Enumeration

  2. java.lang.Enumerations

  3. java.lang.Enum

  4. java.lang.reflect.Enumeration

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This answer is correct. The class java.lang. Enum exists in java.lang package. Also, all enumerations inherit java.lang.Enum superclass. This class defines several methods that are available for use by all enumerations.