Bert,
often you wrote something like "starting with
Java 6, there's the new feature
[generics|Boxing|Varargs|...] - all stuff that was inserted in Java 5.
Or "starting with this exam, the exam will also include multiple choice questions..."
This happened throughout the entire book, imho -
well, you might say - "this is all not very important stuff, and doesn't really make the book wrong - but on the other hand -
every mistake, no matter how small, if found by the "student" rather then the "teacher", does make the "student" feel a bit "left alone" - you start to think like "hmmm, so if there's that error, there will probably be others, so I can't be sure if I can "trust" this book - and this keeps you from letting all the info "FLOW" right into your brain, without filtering it! ;-)
... Hard to explain, but maybe you also once had this feeling?
Were I had it most often, was with the Enthuware Tests - they are cheap, and help you a lot studying for the SCJP, however, they contain SOOO many errors, that you won't even believe these guys when they would tell you the earth isn't flat! ;-)
... I mean seriously, I noticed that I started to re-check more and more of their answers, just because I was never sure at the end, if it was me failing or them...
Okay, back to the point - there are also (at least) two mock exam question I wasn't sure if the answer was right:
Chapter 9, Threads, question 15: The answer says
f), because this would synchronize the chat method.
BUT: I don't think so - its not a static method, but an instance method, yet it's working on a static variable - which is imho not
thread save, yet inherently EVIL (cmp. your own explanations! ;-)
Chapter 9, Threads, question 9:
You said: g) - An Exception is thrown
However, I said: a - it prints x and exits + g - an exception is thrown.
I mean - this is really misleading, at the least -
x IS printed - define what "exits" means. I guess you meant " exits without exception" - but that is not printed there...
p.s: It's "Marcus", not "Marcos", thank you! ;-)
I am not even spanish, i just know some spanish...