This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes ENUM problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "ENUM problem" Watch "ENUM problem" New topic
Author

ENUM problem

sharma ishu
Ranch Hand

Joined: Sep 10, 2012
Posts: 70
Can an ENUM be invoked using “java” command? If yes, please explain how.
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1449
    
    6

http://docs.oracle.com/javase/tutorial/java/javaOO/enum.html


Swastik
John Jai
Bartender

Joined: May 31, 2011
Posts: 1776
Yes, you can invoke an enum that has a main function.

Sample enum:


sharma ishu
Ranch Hand

Joined: Sep 10, 2012
Posts: 70
thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ENUM problem
 
Similar Threads
Creating SingleTON without static variables
Enum Problem
retrieve enumeration datatype into jsp
How to define constants for several classes?
what results byte code in java