Errata

"To err is human" and we are no different. Although, we tried hard not to introduce any error in our book but we understand that there might exist latent errors in the book.

From the beginning, we received many inputs from our readers in the form of emails and comments on this blog. We fixed a set of mistakes in Aug-Sept 2013; thus, readers who purchased the book after Sept 2013 have the copy in which a set of problems are fixed. 

Click here to see/download the list of yet to fix known mistakes. Also, you may download the list of mistakes that we already fixed in Aug-Sept 2013. 

We encourage our readers to report a possible mistake here.

-----------------------------------------------------------------------
Thanks to our readers:
We would like to convey our sincere thanks to following readers who contributed to the errata document: Sheila Weiss, Sebastiaan Heunis, John Doe, Steve Tarlton, Beto Montejo, Michael Klenk, Luca Aliberti, Mikael Strand,  Jonathan S. Weissman, Bob, Gaël Jaffré, EpicWestern, John Stark, FlyTrap, Bruno Soares Bravo, Jaymoid, Denis Talochkin, Souvik Goswami, and Pawel K.

7 comments:

  1. Chapter 2: Question 29, Option 'C' seems to correct
    As per my knowledge 'transient' fields aren't serialized, and hence lost after de-serialization. Please correct me if I need so.

    ReplyDelete
  2. Hi Guys,

    Thanks for your response. I am glad there is feedback from you, in my first post I was feeling a bit hopeless.

    I might be wrong but I believe Mock test 1, page537, q 58, the answer should be true, true, true on page 564. I checked it using this testing app: http://docs.oracle.com/javase/tutorial/essential/regex/test_harness.html

    ReplyDelete
    Replies
    1. In my view, the given answer is correct. Why don't you try to execute the snippet on your computer (and not via any testing app).

      Delete
  3. Page 564, Q 59, 2nd line of the explanation
    says "" matches white space.
    It should be "\D" matches white space

    ReplyDelete
    Replies
    1. Yes, you are right. Thanks for pointing this out.

      Delete
  4. q. 83, page 567 says Options b) and c) uses the finally block, which is not applicable with try-with-resource statements.

    Two things regarding this, a minor spelling error, should say:
    Options b) and c) use the finally block, which is not applicable with try-with-resource statements.

    My second observation:
    http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html
    Note: A try-with-resources statement can have catch and finally blocks just like an ordinary try statement. In a try-with-resources statement, any catch or finally block is run after the resources declared have been closed.

    Yet, in the book it says it's incorrect due to using finally statement...

    ReplyDelete
    Replies
    1. Thanks for pointing out the typo.
      Yes, it is allowed to use finally block and I have included it in the errata.

      Delete