This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes An error in K&B certification book Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "An error in K&B certification book" Watch "An error in K&B certification book" New topic
Author

An error in K&B certification book

Jon Lee
Ranch Hand

Joined: Mar 04, 2005
Posts: 134
Just wanna report an error in "Sun Certified Programmer & Developer for Java 2 Study Guide (Exam 310-035 & 310-027)" book authored by Kathy Sierra and Bert Bates.

On Chapter 3, page 43. The sample code can not be compiled!!!


static method "main" can not access instance member "size"!!

[ October 06, 2005: Message edited by: Jon Lee ]
[ October 06, 2005: Message edited by: Barry Gaunt ]

SCJP 5.0 - 98% (2007)<br />SCWCD 1.4 - 97% (2007)
A Kumar
Ranch Hand

Joined: Jul 04, 2004
Posts: 979
Hi ..,

Yes you are right about the piece of code...



Make a change in the main and it will run..


[ October 06, 2005: Message edited by: A Kumar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: An error in K&B certification book