Java Puzzlers: Traps, Pitfalls, and Corner Cases

Java Puzzlers: Traps, Pitfalls, and Corner Cases
复制标题

Java 谜题:陷阱、陷阱和极端情况

DOI:
--
复制
发表时间:
2005
期刊:
--
影响因子:
--
通讯作者:
N. Gafter
N. Gafter
中科院分区:
--
文献类型:
--
作者:
Joshua J. Bloch;N. Gafter

文献摘要

被引文献

相似文献

“每种编程语言都有它的怪癖。这本生动的书通过有趣和发人深省的编程难题揭示了Java编程语言的古怪之处。--Guy Steele,Sun Fellow,《Java™语言规范》的合著者“我笑了,我哭了,我吐了(我的手在钦佩)。--Tim Peierls,Prior Artisans LLC总裁,JSR 166专家组成员你对Java到底了解多少?你是代码侦探吗你是否曾经花了几天的时间来追踪Java或其库中的陷阱或陷阱引起的bug?你喜欢脑筋急转弯吗?这本书是为你而写的。在Effective Java™的传统中,Bloch和Gafter深入研究了Java编程语言及其核心库的微妙之处。以视觉上令人惊叹的视觉错觉为插图,Java™ Puzzlers具有95个恶魔般的谜题,教育和娱乐。任何有Java工作知识的人都能理解这些谜题,但即使是最有经验的老手也会发现它们很有挑战性。大多数谜题都是一个简短的程序,其行为并不像它看起来的那样。你知道它是干什么的吗?谜题根据它们使用的功能松散地分组,每个谜题后面都有详细的解决方案。这些解决方案远远超出了对程序行为的简单解释--它们向您展示了如何永远避免潜在的陷阱和缺陷。本书后面有一个方便的陷阱和陷阱目录,为将来的参考提供了一个简明的分类法。解决了这些难题,你就再也不会成为那些甚至可以愚弄最有经验的程序员的违反直觉或晦涩难懂的行为的牺牲品。
"Every programming language has its quirks. This lively book reveals oddities of the Java programming language through entertaining and thought-provoking programming puzzles."--Guy Steele, Sun Fellow and coauthor of The Java™ Language Specification"I laughed, I cried, I threw up (my hands in admiration)."--Tim Peierls, president, Prior Artisans LLC, and member of the JSR 166 Expert GroupHow well do you really know Java? 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? Then this is the book for you!In the tradition of Effective Java™, Bloch and Gafter dive deep into the subtleties of the Java programming language and its core libraries. Illustrated with visually stunning optical illusions, Java™ Puzzlers features 95 diabolical puzzles that educate and entertain. Anyone with a working knowledge of Java will understand the puzzles, but even the most seasoned veteran will find them challenging.Most of the puzzles take the form of a short program whose behavior isn't what it seems. Can you figure out what it does? Puzzles are grouped loosely according to the features they use, and detailed solutions follow each puzzle. The solutions go well beyond a simple explanation of the program's behavior--they show you how to avoid the underlying traps and pitfalls for good. A handy catalog of traps and pitfalls at the back of the book provides a concise taxonomy for future reference.Solve these puzzles and you'll never again fall prey to the counterintuitive or obscure behaviors that can fool even the most experienced programmers.