*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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 ]
 
Consider Paul's rocket mass heater.
 
subject: An error in K&B certification book