aspose file tools
The moose likes Java in General and the fly likes What is the difference between enum and Enum? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "What is the difference between enum and Enum?" Watch "What is the difference between enum and Enum?" New topic
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between enum and Enum?
 
Similar Threads
How to define constants for several classes?
Difference between lang.Enum and util.Enumeration
retrieve enumeration datatype into jsp
Can we use Enum as a variable name in jdk1.4
calculate time difference b/w two time entry