James Raitsev
James Raitsev

Reputation: 96391

What is the relationship between Enum and Enumeration, if any

I wonder what is a formal connection if any between Enumeration interface in Java and an Enum construct?

Upvotes: 6

Views: 734

Answers (1)

T.J. Crowder
T.J. Crowder

Reputation: 1074138

There is none, they're for entirely different things. enums are for enumerated constants. Enumeration is a largely-outdated interface superceded by Iterator.

Upvotes: 14

Related Questions