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


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "ExamLab enum" Watch "ExamLab enum" New topic
Author

ExamLab enum

Saibabaa Pragada
Ranch Hand

Joined: Oct 24, 2010
Posts: 162
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

Sorry for asking? What is your question? Please elaborate a bit more?


|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Saibabaa Pragada
Ranch Hand

Joined: Oct 24, 2010
Posts: 162

Abimaran Kugathasan wrote:Sorry for asking? What is your question? Please elaborate a bit more?
Abimaran Kugathasan
Ranch Hand

Joined: Nov 04, 2009
Posts: 2066

You can't use qualified names in enums case constants. And, what is the point of duplicating same vale?
Saibabaa Pragada
Ranch Hand

Joined: Oct 24, 2010
Posts: 162
Hi Abimaran, My question is different, The above code produces 2 compiler errors at Lines 8 and 17. How Line 8 knows that there is duplicate case which is defined at Line 17. At this point, Line 17 is error means compiler did not take it.
 
jQuery in Action, 2nd edition
 
subject: ExamLab enum