aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Enum doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Enum doubt" Watch "Enum doubt" New topic
Author

Enum doubt

Raj Shan
Ranch Hand

Joined: Sep 04, 2006
Posts: 65
Hi,

I read that the access modifier for enum is default and public. But I read the below stmnt in some book. So Can I use any of the below modifiers for the enum that is declared within the class?

=========================================================================
An enum declared outside a class must NOT be marked static, final,
abstract, protected, or private.
=========================================================================
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13868
    
  10

Why don't you just try it out? Write a small test program, try to compile it, and see if you get any errors.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Enum doubt
 
Similar Threads
Enum-doubt
enum doubt
enum confusion
Enums
enum: can anyone post the rules for enum declarations