The Logic of Java Programming cover

The Logic of Java Programming

Rating 4.5
Chapters
33
Series
Java Core Technology Series
ISBN
9787111587729

Tags

Summary

The Logic of Java Programming is an advanced Java learning book by Ma Junchang, published by China Machine Press in 2018 as part of the "Java Core Technology Series." The author believes the difficulty of learning programming lies in the disconnect between theory and practice: classes on binary, data structures, and operating systems are often abstract and dry, while learning a specific language often means learning only syntax and APIs, resulting in knowing how but not why. The book attempts to bridge the two, using Java as a sample to start from basic concepts, peel back layer by layer the implementation principles and design logic behind the language, and then return to applied practice. The book has six parts and 26 chapters. Part I (Chapters 1–2) covers the basic execution flow and elements of programs and the binary representation behind data. Part II (Chapters 3–7) covers object orientation, including class fundamentals, inheritance and polymorphism, interfaces and abstract classes, exceptions, and common base classes. Part III (Chapters 8–12) covers generics and containers, including lists, queues, Map and Set, heaps and priority queues, and data structures and algorithms. Part IV (Chapters 13–14) covers file processing, from byte streams and character streams to random access, memory-mapped files, and serialization. Part V (Chapters 15–20) covers concurrency, including thread fundamentals, atomic variables, explicit locks, concurrent containers, and asynchronous task execution services. Part VI (Chapters 21–26) covers dynamic and declarative programming topics such as reflection, annotations, dynamic proxies, the class loading mechanism, regular expressions, and Java 8 functional programming. The book's distinguishing feature is that beyond explaining usage it asks "why was it designed this way," and with analysis of JDK source code it helps readers build a knowledge map from language fundamentals to high-level frameworks. It is suitable for systematic study by programmers who can already write Java code and wish to solidify their foundations and understand underlying mechanisms.

Editor's review

市面上的Java书大致分两类:一类从语法、API讲到框架,教你怎么用;一类从计算机原理讲到语言理论,讲得抽象。本书难得地把两条线接在了一起——每讲一个概念,不只告诉你语法怎么写,还追问一句“为什么要有它,它内部是怎么实现的”。 最见功力的是它的取舍与节奏。开头用两章把程序执行流程和二进制表示讲透,随后自然过渡到类、继承、接口、异常,再进入泛型与容器、文件与序列化、并发包、反射与函数式编程,一路是“基础→机制→应用”的阶梯,不跳跃也不拖沓。对集合、并发包等常用API,作者剖析了大量JDK源码,让ArrayList的扩容、HashMap的结构、线程池的调度不再是黑箱。 全书675页、26章,体量不小,但每章相对独立,可当工具书长期翻阅。适合与《Java核心技术》搭配使用:一本铺面,一本挖深。对想从“会写”走向“懂行”的开发者,是一部踏实可靠的进阶读物。

Who it's for

A good fit for

  • 已掌握Java基本语法、能写简单程序,希望理解底层机制的开发者
  • 准备面试或系统复习Java基础、并发与集合框架的求职者
  • 使用《Java核心技术》等入门书后,想深入“为什么这样设计”的读者
  • 计算机专业学生,希望把课堂上的数据结构、操作系统理论与语言实践打通的人

Not a good fit for

  • 完全没有编程经验、第一次接触编程的零基础读者
  • 只想快速上手脚手架(如Spring Boot)做项目的开发者
  • 需要查阅Java EE、安卓或大数据框架专项内容的读者

Reading tips

  1. 按第一至第六部分顺序读,先建立“基础→面向对象→容器→并发”的知识阶梯,不宜跳读。
  2. 每读一节就动手敲示例代码,并对照JDK源码看关键类的实现,边读边调试。
  3. 把本书当长期参考书,遇集合、并发、反射问题按章回查,不必一次读完。
  4. 与《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. Preface
  2. Part I Programming Fundamentals and Binary
  3. Chapter 1 Programming Fundamentals
  4. Chapter 2 Understanding the Binary Behind Data
  5. Part II Object Orientation
  6. Chapter 3 Class Fundamentals
  7. Chapter 4 Class Inheritance
  8. Chapter 5 Class Extension
  9. Chapter 6 Exceptions
  10. Chapter 7 Common Base Classes
  11. Part III Generics and Containers
  12. Chapter 8 Generics
  13. Chapter 9 Lists and Queues
  14. Chapter 10 Map and Set
  15. Chapter 11 Heaps and Priority Queues
  16. Chapter 12 General Container Classes and Summary
  17. Part IV Files
  18. Chapter 13 File Fundamentals
  19. Chapter 14 Advanced File Techniques
  20. Part V Concurrency
  21. Chapter 15 Concurrency Fundamentals
  22. Chapter 16 The Cornerstones of the Concurrency Package
  23. Chapter 17 Concurrent Containers
  24. Chapter 18 Asynchronous Task Execution Services
  25. Chapter 19 Synchronization and Coordination Utilities
  26. Chapter 20 Concurrency Summary
  27. Part VI Dynamic and Functional Programming
  28. Chapter 21 Reflection
  29. Chapter 22 Annotations
  30. Chapter 23 Dynamic Proxies
  31. Chapter 24 The Class Loading Mechanism
  32. Chapter 25 Regular Expressions
  33. Chapter 26 Functional Programming

FAQ

这本书适合Java零基础的人看吗?
不太适合。本书虽从程序基础讲起,但推进较快,且大量剖析JDK源码与实现机制,更适合已能写Java代码、想弄清“为什么”的读者。零基础读者建议先读一本入门教材再来。
这本书和《Java编程思想》有什么区别?
《Java编程思想》成书较早,偏重语言特性与设计哲学的完整阐述,可作为系统学习语言的经典;本书则在讲解语法之外,侧重解释每个概念的设计动机与JDK内部实现,更贴近现代Java实践与源码剖析。
书里的内容对应哪个Java版本?
本书内容以Java 8为主,函数式编程、Lambda与Stream等Java 8新特性在第六部分单独讲解;并发部分覆盖Java并发包的核心工具类。具体版本细节请以书中说明为准。
需要配合哪些前置知识来读?
最好已了解基本语法、数组与常用类,并对计算机基础(二进制、内存、数据结构)有初步印象。这样在读第2章二进制、第三部分容器数据结构和第五部分并发时会更顺畅。
这本书有配套代码或习题吗?
书中以示例代码配合原理讲解为主,作者曾在CSDN、掘金等社区发布相关系列文章,可结合作者公开的博客内容延伸阅读。具体配套资源请以出版社或作者官方渠道公布的信息为准。

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