| Author |
What is the difference between enum and Enum?
|
Balaji Natarajan
Greenhorn
Joined: Nov 24, 2007
Posts: 29
|
|
Can anyone please point out the differences between enum and Enum? Regards, Balaji N
|
Best Regards,<br />Balaji Natarajan<br /> <br />SCJP 1.5 100%<br />SCWCD 1.5 92%<br />SCBCD (In Progress)
|
 |
Ilja Preuss
author
Sheriff
Joined: Jul 11, 2001
Posts: 14112
|
|
|
The former is a keyword, the latter a class name.
|
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
|
 |
Zenikko Sugiarto
Ranch Hand
Joined: Jan 09, 2005
Posts: 58
|
|
Indeed, Also if I'm not mistaken, "enum" was not a reserved keyword until Java 1.5. I've worked with system that have code written in older version of Java, that uses 'enum' as a variable name everywhere. Bad idea as the moment you roll 1.5 in, the code doesn't compile due to the enum errors. If you are updating/ writing code using older JRE, just don't do that.
|
 |
 |
|
|
subject: What is the difference between enum and Enum?
|
|
|