Thinking in Java (4th Edition) cover

Thinking in Java (4th Edition)

Rating 4.5
Word count
255K words
Chapters
22
Series
Computer Science Series
ISBN
9787111213826

Tags

Summary

Thinking in Java is the Chinese translation of the fourth edition of Bruce Eckel's classic Thinking in Java, translated by Chen Haopeng and published by China Machine Press in 2007 as part of the Computer Science Series. The book has 22 chapters, starting from basic Java syntax and progressively moving into advanced features: introduction to objects, everything is an object, operators, controlling execution flow, initialization and cleanup, access control, reusing classes, polymorphism, interfaces, inner classes, holding your objects, error handling with exceptions, strings and regular expressions, type information and reflection, generics, arrays, in-depth containers, the Java I/O system, enums, annotations, concurrency, and graphical user interfaces. Through a wealth of short, direct examples and a test framework that displays program output, the author makes abstruse and abstract concepts clear and traceable, and weaves design patterns such as Adapter, Bridge, Command, Decorator, Factory Method, Singleton, Strategy, Template Method, and Visitor throughout the many examples. The fourth edition adds new examples and chapters for Java SE5/6, rewrites the concurrency chapter, and introduces new features such as annotations, enums, varargs, and autoboxing. The book has received honors including the Jolt Award and is widely used as a university textbook for object-oriented programming and as a self-study reference for programmers.

Editor's review

这是一本被一代Java程序员反复翻烂的书。它不追求速成,而是耐心地把“为什么这样设计”讲透:为什么要有接口、为什么泛型要擦除、为什么并发的坑这么多。Bruce Eckel 有多年教学经验,语言亲和,示例短小能直接运行,每章末尾还有练习与总结,像一位耐心导师陪你逐段拆解Java的抽象概念。第4版对应Java SE5/6,新增注解、枚举、可变参数等章节,并发部分整体重写,设计模式贯穿示例,读完之后再看框架源码会顺畅得多。需要提醒的是:书中语法基于较早期的Java版本,容器、并发等细节与今天的Java 17/21已有差异,建议边读边用现代JDK动手验证,把它当“思想书”而不是“API手册”。

Who it's for

A good fit for

  • 有一定编程基础、想真正理解面向对象与Java设计思想的学习者
  • 高校软件工程、计算机专业学生作为面向对象程序设计课程配套读物
  • 从其他语言转Java、需要系统补齐语言特性的开发者
  • 希望夯实泛型、反射、容器与并发基础的初中级Java工程师

Not a good fit for

  • 完全零基础、连变量和循环都没接触过的纯新手,建议先读更轻量的入门书
  • 急需上手Spring等框架做业务、想要速查API的读者
  • 只想找一本与最新Java LTS版本逐条对照的参考手册的读者

Reading tips

  1. 按章节顺序精读第1—10章,把面向对象、继承、多态、接口、内部类的基础打牢,不要跳读。
  2. 每章示例务必亲手敲一遍并改动参数观察输出,书中部分代码基于旧版Java,需在现代JDK上调试修正。
  3. 泛型(第15章)、类型信息(第14章)、并发(第21章)三章可反复读,配合官方文档与源码加深理解。
  4. 把本书当“思想书”而非速查手册,遇到API差异以所使用Java版本的官方文档为准。

About the publisher

China Machine Press China · Founded in 1950

In addition to science and technology and professional publishing, the books in our catalog from China Machine Press also reflect a sustained focus on psychology, computing, management, finance and economics, and social sciences. In psychology, the catalog includes works by C. G. Jung and introductions to analytical psychology, as well as applied topics such as stress and health, and addiction and healing. In computing, it features Structure and Interpretation of Computer Programs (JavaScript Edition). Management and finance titles include Administrative Behavior (4th Edition), The Price of Inequality (Collector's Edition), and This Time Is Different: Eight Centuries of Financial Folly (Commemorative Edition). In the philosophy and history of science, there is The Worldview: The Third Edition. Relevant authors include C. G. Jung, William McGuire, Sonu Shamdasani, and Gabor Maté. Public information is limited; the above summarizes the publisher's profile based solely on the books in our catalog.

Contents

  1. Chapter 1 Introduction to Objects
  2. Chapter 2 Everything Is an Object
  3. Chapter 3 Operators
  4. Chapter 4 Controlling Execution
  5. Chapter 5 Initialization & Cleanup
  6. Chapter 6 Access Control
  7. Chapter 7 Reusing Classes
  8. Chapter 8 Polymorphism
  9. Chapter 9 Interfaces
  10. Chapter 10 Inner Classes
  11. Chapter 11 Holding Your Objects
  12. Chapter 12 Error Handling with Exceptions
  13. Chapter 13 Strings
  14. Chapter 14 Type Information
  15. Chapter 15 Generics
  16. Chapter 16 Arrays
  17. Chapter 17 Containers in Depth
  18. Chapter 18 Java I/O System
  19. Chapter 19 Enumerated Types
  20. Chapter 20 Annotations
  21. Chapter 21 Concurrency
  22. Chapter 22 Graphical User Interfaces

FAQ

这本书适合零基础学Java吗?
不太适合完全零基础者。本书假定读者已掌握基本编程概念,开篇即进入面向对象与抽象思维,节奏偏慢但深度较高。零基础读者建议先读一本入门教材,再来读本书打思想底子。
第4版对应哪个Java版本?会不会过时?
第4版基于Java SE5/6,补充了注解、枚举、泛型、可变参数等特性,并发章节整体重写。核心的面向对象思想与设计观念不过时,但容器、并发、I/O等具体API与Java 17/21有差异,需对照新版文档。
中文版译者是谁,和侯捷译本有什么区别?
流传最广的第4版由陈昊鹏翻译,机械工业出版社2007年出版,ISBN 9787111213826。更早的2002年版由侯捷翻译,对应较早的版本内容,读者选购时注意区分版次与ISBN。
书中的练习题有答案吗?
原书每章末尾附有练习,官方并未在正文中给出全部解答,网上有社区整理的参考解答,质量参差。建议先独立完成,再参考他人思路,重点是理解设计意图而非答案本身。
读完这本书还需要读什么?
本书偏语言与思想层面,读完后可继续学习《Effective Java》掌握实践准则,再结合实际项目熟悉集合框架、并发工具包与主流框架源码,形成完整的Java知识体系。

Comments

Find this book

This site is an index: you start “Search all sources” in your browser, and the entries it lists all point to third-party sites; please judge their availability yourself.

More by the same author

Top rated in the same category