Are there any special implications of an enum being declared static?
Thanks!
About Question enthuware.ocpjp.v7.2.1463 :
Moderator: admin
-
- Posts: 9
- Joined: Sun Jul 19, 2015 6:31 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1463 :
No, nothing special that applies to only enums. It is just like declaring a static inner class.
-
- Posts: 16
- Joined: Fri Sep 04, 2015 5:06 pm
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1463 :
In my opinion, The question should mention that these are contents of a single .java file.
Then option 1 is correct.
Then option 1 is correct.
-
- Posts: 97
- Joined: Wed Dec 28, 2016 9:00 am
- Contact:
Re: About Question enthuware.ocpjp.v7.2.1463 :
And to think that this was just meant to be a specification and not an ocjp question was so foolish of me! 

Who is online
Users browsing this forum: Bing [Bot] and 10 guests