wood burning stoves 2.0*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Doubt in K&B SCJP 5: p62. semicolon after the declaration of enum Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Doubt in K&B SCJP 5: p62. semicolon after the declaration of enum" Watch "Doubt in K&B SCJP 5: p62. semicolon after the declaration of enum" New topic
Author

Doubt in K&B SCJP 5: p62. semicolon after the declaration of enum

Leon Chen
Greenhorn

Joined: Feb 26, 2006
Posts: 5
Hi,

According to "K & B, SCJP 5 - Errata: Updated 7/28/06"
http://www.coderanch.com/t/257589/java-programmer-SCJP/certification/SCJP-Errata-Updated


.62.*..bug.......After first code s/b: ...of the enum declaration, when no other declarations for this enum follow


I am not sure under what situation, the semicolon is required.
Could anyone kindly provide an example by modifying the code in P.62?
Thanks!



[ February 19, 2007: Message edited by: Leon Chen ]
[ February 19, 2007: Message edited by: Leon Chen ]
Jesse Custer
Ranch Hand

Joined: Feb 07, 2007
Posts: 45
I'm not sure about this, but in my experience it works something like this:

 
Don't get me started about those stupid light bulbs.
 
subject: Doubt in K&B SCJP 5: p62. semicolon after the declaration of enum