This lively book reveals oddities of the Java programming language through entertaining and thought-provoking programming puzzles. Are you a code sleuth? Have you ever spent days chasing a bug caused by a trap or pitfall in Java or its libraries? Do you like brainteasers?
|Published (Last):||6 December 2018|
|PDF File Size:||14.28 Mb|
|ePub File Size:||20.55 Mb|
|Price:||Free* [*Free Regsitration Required]|
Shelves: computers This books has a lot of good puzzles designed to make you think about how Java works. Java Puzzlers is not so much a book, but a collection of obscure corner cases in the Java programming language. The author Joshua Bloch is well known as the author of "Effective Java" which is widely regarded as the premier text for the language, and furthermore he is one the designers and authors of the Java Collections Framework.
So to say the least, he knows his stuff. Each chapter of the book features a collection of "puzzlers" centered around a particular section of the language examples include loops, strings, exceptions, classes, etc. Each "puzzler" is formulated where a puzzle typically in the form of a code snippet is given, and the reader is encouraged to try and predict what the output will be, or why the code is incorrect.
The explanations also often include commentary to language designers ex: "the lesson for language designers here is From an academic "curiosity" point of view the book is quite intriguing.
As a fairly experienced Java developer I found myself surprised with the vast majority of the puzzlers. The programming languages guy in me found this fascinating ex: wait, so you can have Unicode literals in comments, and those literals are interpreted by the compiler? Having said that, the book does reach a point where the puzzles and concepts hit upon by the puzzles are extremely obscure.
Java™ Puzzlers: Traps, Pitfalls, and Corner Cases
Java Puzzlers: Traps, Pitfalls, and Corner Cases