The book is conditionally good but its content is diluted with, I believe, excessive contrived cute wording.
I have the May 2003, First Edition and use Sun's JAVA 2 Runtime, Standard Edition (build 1.4.2_03-b02) and Java HotSpot Client VM (build 1.4.2_03-b02 mixed mode) under Windows 2000.
The example on page 430-431 QuizCardBuilder does not compile, regardless if you copy it from the book, download it from the codeKitchen, or apply the Errata fix for the extraneous public classes.
When QuizCardBuilder (downloaded from the Head First Java codeKitchen) is compiled using JAVAC -g QuizCardBuilder.java the compiler reports
QuizCardBuilder.java:81 cannot resolve symbol
symbol : class QuizCard
location: class QuizCardBuilder.NextCardListener
QuizCard card = new QuizCard(question.getText(),...
^
While I have learned some JAVA from the book it is extremely frustrating for a student when examples do not work. Was this code ever tested before it was published?
|