Think Java cover

Think Java

Rating 3.5
Word count
325K words
Chapters
18
Series
Turing Programming Series
ISBN
9787115440150

Tags

Summary

Think Java is the Chinese edition of Think Java: How to Think Like a Computer Scientist, co-written by American computer science teachers Allen B. Downey and Chris Mayfield and translated by Yuan Guozhong. It belongs to the Turing Programming Series from Posts & Telecom Press. The book has 14 chapters and 3 appendices, totaling about 325,000 Chinese characters. The authors' aim was to write a genuine introductory book for Java, focused on basic programming structures and techniques rather than covering all of Java, so they take a "late objects" approach: variables, operators, input and output, void methods, conditionals and logic, value methods, loops, arrays, and strings come first, followed by objects, class design, arrays of objects, and arrays of objects, and finally objects that contain other objects and inheritance. Every concept is first given a clear definition and illustrated with examples and visual tools such as state diagrams, stack diagrams, and class diagrams to help readers understand what happens in memory and during method calls. Each chapter corresponds to about one week of a university course, and each ends with a glossary and exercises on topics such as word games, graphics, board games, and card simulations. The appendices cover development tools, Java 2D graphics, and debugging techniques. The book's premise is "programming as a means of solving problems," and its goal is to help readers with no programming background develop the habits of a computer scientist—breaking down problems, testing ideas, and debugging errors—which is why many universities and secondary schools use it as an introductory computer science textbook or as a supplement for AP Computer Science.

Editor's review

如果你翻过《Java编程思想》被它的厚度劝退,这本书的定位就清楚了:它不是 Java 语言大全,而是一本「用 Java 学编程」的入门课。全书的叙事主线是计算思维,而非语法清单——先让读者理解变量是一个装着值的盒子、方法调用会在栈上留下什么,再去谈对象和类。作者坚持「迟来的对象」,把递归、状态图、栈图、类图这些通常被略过的思维工具放在显眼位置,这正是它区别于国内速成教材的地方。全书 14 章对应一门大学入门课的一学期节奏,每章短小、可一周读完,章末术语表方便复习,练习从输出几行字到实现扑克牌洗牌、二分查找、继承关系中的牌局模拟,难度是阶梯式的。译文出自袁国忠之手,术语统一,代码与解释衔接顺畅。需要提醒的是:本书基于较早的 Java 版本写作,不涉及 lambda、现代集合框架与工程化实践,指望它直接对接企业开发会失望;但若你要的是把「程序如何跑起来」这件事想明白,它仍是性价比很高的一本。

Who it's for

A good fit for

  • 零基础或只有少量编程经验、想系统入门计算机科学的学生
  • 讲授计算机导论、AP 计算机科学或大学 Java 入门课的教师
  • 希望补上「计算思维」而非语法细节的自学者
  • 计划之后转向 Python 等其他语言、想先建立编程直觉的人

Not a good fit for

  • 已有 Java 工作经验、想深入 JVM、并发或框架的开发者
  • 正在准备企业级项目实战、需要 Spring 与工程化内容的读者
  • 期待覆盖最新 Java 版本特性(如 lambda、模块化)的人

Reading tips

  1. 按章顺序读,每章先看术语表再读正文,最后动手做完章末练习,一周一章约需一学期。
  2. 动手比阅读更重要:书中的状态图、栈图建议自己画一遍,再对照作者的解释修正。
  3. 遇到递归与对象部分看不懂时,先回到第 4、5 章的栈图与调用流程,那里的方法是后面所有内容的基础。
  4. 读完后可配一本现代 Java 教材补充集合框架与新语法,把它当成「思维地基」而非「技术手册」。

About the publisher

Posts & Telecom Press China · Founded in 1953

Posts & Telecom Press is known for its strengths in science and technology, computing, and information and communications titles, and has extended its publishing into photography, art, software learning, and inspirational growth, giving it a fairly diverse range. Its catalog includes computing and communications works such as Refactoring and Patterns (Revised Edition) and Huawei Switch Learning Guide (Second Edition), alongside bilingual collector's editions such as The Little Prince (Chinese-English-French illustrated collector's edition), The Great Gatsby, and Three Days to See. Beijing Ten Years: 1980-1990 and Ghost Blade: WLOP Personal Illustration Collection reflect its presence in photography and art. Its authors include Antoine de Saint-Exupéry, Helen Keller, Joshua Kerievsky, Wang Da, Zhang Zhaozeng, and WLOP.

Contents

  1. Preface
  2. Chapter 1 The Way of the Program
  3. Chapter 2 Variables and Operators
  4. Chapter 3 Input and Output
  5. Chapter 4 Void Methods
  6. Chapter 5 Conditionals and Logic
  7. Chapter 6 Value Methods
  8. Chapter 7 Loops
  9. Chapter 8 Arrays
  10. Chapter 9 Strings
  11. Chapter 10 Objects
  12. Chapter 11 Classes
  13. Chapter 12 Arrays of Objects
  14. Chapter 13 Objects of Arrays
  15. Chapter 14 Objects of Objects
  16. Appendix A Development Tools
  17. Appendix B Java 2D Graphics
  18. Appendix C Debugging

FAQ

这本书和《Java编程思想》(Thinking in Java)是同一本吗?
不是。本书是 Think Java 的中译本,作者为艾伦·唐尼与克里斯·梅菲尔德,薄得多,定位是入门教材;《Java编程思想》是 Bruce Eckel 的 Thinking in Java,篇幅与深度都远超本书,属于进阶参考书。
零基础能直接读这本书吗?
可以。作者假定读者没有编程经验,从「什么是编程」讲起,每个术语首次出现时都会给出定义,并配有大量示例与练习,适合作为第一本编程书。
需要先学数学或别的语言吗?
不需要。书中涉及的数学只有基本的算术与二进制、求模等概念,作者都会解释;也不要求先学 C 或 Python,直接用 Java 建立编程概念。
这本书用的是哪个 Java 版本?
中文版据原书 2016 年前后的版本译出,示例基于 Java 8 左右的语法,未涵盖 lambda、stream 等较新特性,学完后建议再补充新版本内容。
书里的练习有参考答案吗?
该书原版由作者以开放许可发布,配套代码与部分资料可在作者网站与出版社资源页找到;中文纸质版本身不附完整习题答案,练习更适合课堂讨论或自行验证调试。

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