Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the relationship between Enum and Enumeration, if any

Tags:

java

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

like image 411
James Raitsev Avatar asked Apr 29 '12 21:04

James Raitsev


1 Answers

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

like image 159
T.J. Crowder Avatar answered Nov 14 '22 22:11

T.J. Crowder