Java

Author: Joshua Bloch Neal Gafter Chen Haopeng
Publisher:
Publish Date: 2006-01-01
Features: "Every programming language has its quirks. This lively book reveals the oddities of the Java programming language through fun and thought-provoking programming puzzles." —GUY STEELE, Sun Fellow and coauthor of the Java Language Specification "I laughed, I cried, I threw my hands up in admiration" —TIM PEIERLS, Chairman and former member of the JSR166 Expert Group Do you really know Java? Are you a code detective? Have you ever spent days tracking down a bug caused by a trap or defect in Java or its libraries? Do you enjoy quizzes? Then this book is perfect for you! Continuing the tradition of Effective Java, Bloch and Gafter delve into the subtleties of the Java programming language and its core libraries. Through stunning visual illusions, Java Puzzlers presents 95 nightmare-inducing puzzles that are both educational and entertaining. Anyone with Java knowledge can understand these puzzles, but even most experienced programmers will find them challenging. Most of the puzzles are short programs whose behavior differs greatly from what they appear to do. Can you predict what it will do? Based on the features used in these puzzles and the detailed solutions that follow each one, we have loosely grouped them into different categories. These solutions are not just simple explanations of program behavior; they show you how to permanently avoid the underlying traps and defects. In the latter part of the book, there is a simple traps and defects catalog that provides a concise classification of references to the earlier sections. You must solve these puzzles and never become a victim of those counterintuitive or obscure behaviors that can even fool most experienced programmers. This book presents 95 puzzles related to traps and defects in Java or its libraries, most of which are short programs whose behavior differs greatly from what they appear to do. Detailed solutions are provided after each puzzle, which go beyond simple explanations of program behavior and show readers how to permanently avoid the underlying traps and defects. This book is fun, engaging, and suitable for learners with Java knowledge and experienced Java programmers.

📌 Related Posts