I've started rereading the book, and I definitely don't recommend it for preparing for the SCJP exam for J2SE 5.
There are so many errors! Significant errors, like what exception FileReader and FileWriter throw from their read/write methods - there's a table aggregating the I/O exceptions for various Stream classes and their read/write methods, and it's wrong. Kind of annoying. Keeps me sharp, I supposed, but the Sun book has to be better.
Also, the lack of formatting of code snippets is really annoying; it's hard to read.
I'll post a list of the errata later.
For now:
p.209
* "public FileReader(...) throws IOException"
should be "throws FileNotFoundException"
p.210
* "public FileWriter(...) throws IOException"
should be "throws FileNotFoundException"
p.214
* Table 8-6 FileReader, FileWriter exception thrown by Read/Write Methods should be IOException.
p.214
* It alternatively refers to "a string and two objects are written to the stream" and "the String and the Date Objects that were written to the file," when the first code snippet writes two Strings and one Object.
* bottom code snippet "(MyClassSerial)" should be "(MySerialClass)" on the 4th and 5th lines.
Labels: java, scjp