This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Leon Chen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure about this, but in my experience it works something like this:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic