Practical Java Programming cover

Practical Java Programming

No rating yet
Word count
660K words
Chapters
19
ISBN
9787302484981

Tags

Summary

Practical Java Programming was compiled by the teaching and research team of Beijing Shangxuetang Technology Co., Ltd. and published by Tsinghua University Press in June 2018. The book has 18 chapters, about 660,000 characters, 450 pages, and 339 cases, and its content grew out of the author team's more than ten years of Java training and teaching experience. The book positions itself as teaching both practical skills and fundamentals: on one hand, it covers the main body of Java SE knowledge with a large number of runnable cases; on the other, it explains low-level content such as memory analysis, JVM operating mechanisms, data structures, and JDK source code interpretation thoroughly. The authors say their aim is to help beginners develop both practical ability and a solid foundation. The chapter outline is roughly as follows: Chapter 1 begins with the history of computer languages and Java, completes JDK installation and Eclipse use, and uses a small billiards game as the first project so readers can get hands-on early; Chapters 2–3 cover data types, operators, variables, and control statements; Chapters 4–5 cover object-oriented basics and advancement, involving classes, objects, packages, encapsulation, inheritance, interfaces, abstract classes, and inner classes, accompanied by object memory layout analysis; Chapter 6 covers exception handling; Chapter 7 covers arrays and introduces basic algorithms through sorting and searching; Chapters 8–9 cover common classes such as wrapper classes, strings, dates, Math, and File, and containers such as List, Set, and Map, while introducing data structures and source-code reading; Chapter 10 covers IO streams and introduces the Apache Commons IO library; Chapter 11 covers multithreading, synchronization mechanisms, and the producer-consumer pattern; Chapter 12 covers TCP/UDP network programming; Chapter 13 ties together the knowledge of the first 12 chapters with an airplane game project; Chapters 14–16 briefly introduce Swing interfaces, the event model, and common controls; Chapter 17 covers reflection; Chapter 18 covers core design patterns such as singleton, factory, decorator, chain of responsibility, template method, observer, and dynamic proxy. At the end of the book is a description of the accompanying "Java 300-Episode Large-Scale Teaching Video"; courseware and source code can be downloaded from the Tsinghua University Press website. Note that the book focuses on Java SE fundamentals, was completed in 2018, and its example toolchain leans toward the Eclipse and Java 8 era; web development, Spring, and other frameworks are not included, so those aiming at backend framework development will need separate specialized reading.

Editor's review

市面上的Java入门书往往走两条路:要么只讲语法、写完Hello World就没了下文,读者一上手做项目还是懵;要么一上来就堆框架,底层原理含糊带过。这本书的取舍比较明确——先把Java SE的基础打牢,再用案例把知识串起来,同时在关键处往下挖一层。 它的几个特点值得留意。第一,实战前置。第1章就带读者做出一个能跑能玩的桌球小游戏,先建立“我能做出东西”的反馈,再回头补语法细节,对零基础读者的心理节奏比较友好。第二,底层讲解不吝笔墨。讲对象就画内存图,讲内存管理就谈JVM,讲容器就顺着JDK源码讲数据结构和实现方式,这些恰恰是笔试面试常考、而入门书常略过的部分。第三,案例量大。全书339个案例,配合每章小结与作业,适合按章推进、边学边敲。第四,最后落在设计模式上,单例的四种写法、动态代理这些内容讲得比较实在,能让读者在学完语法之后对“代码怎么组织”有初步概念。 需要提醒的是,本书主体是Java SE,Swing部分占了三章但作者自己也说明工作中用得极少;版本与工具以Java 8和Eclipse为基准,阅读时可以把示例迁移到新版JDK与IDEA中练习,顺便熟悉现代工具。对于想系统打基础、顺便照顾面试的读者,这本书的性价比不错;如果目标是直接上手Spring Boot做后端,它只能算前置准备。

Who it's for

A good fit for

  • 零基础或刚接触编程、准备系统学习Java SE的初学者
  • 计算机相关专业学生,需要一本可配合课程使用、案例充足的自学教材
  • 有其它语言基础、想快速补齐Java语法与对象模型理解的开发者
  • 准备Java初级岗位笔试面试、需要复习底层原理与设计模式的求职者

Not a good fit for

  • 已有多年Java开发经验、寻找进阶架构或源码级深度内容的读者
  • 希望直接学习Spring、MyBatis等框架与Web后端开发的人
  • 只想要速查手册、不愿跟着案例动手敲代码的读者

Reading tips

  1. 按章节顺序推进,每章的示例代码务必亲手敲一遍并改参数观察输出变化
  2. 第4、9、11章的内存分析、容器源码、多线程同步是全书重点,建议配合画图与调试器反复推演
  3. 把书中的Swing三章作为了解性内容快速略读,节省时间投入到IO、多线程与网络编程
  4. 示例基于Java 8与Eclipse,练习时可迁移到新版JDK和IDEA,顺便熟悉现代开发工具

About the publisher

Tsinghua University Press China · Founded in 1980

Founded in 1980, Tsinghua University Press has 57 titles in our collection, covering popular science, medicine, health, law, philosophy and social sciences. Representative works include medical popular-science books such as Cancer Truth: Doctors Are Reading It Too and New Knowledge on Cancer by Bo Luo (Li Zhizhong), legal titles such as Sunshine Is the Best Preservative: Express Delivery of Major Global Anti-Corruption Cases, and works like Qi Ge's A Brief History of Philosophy with Big Ideas and Liu Yunhao's From the Internet to a New Industrial Revolution. Its authors include science writers, medical researchers, the Renmin University of China anti-corruption master's class and university scholars, reflecting a publishing profile that balances academic seriousness with accessible reading. As public information is limited, this profile is based only on the titles in our collection.

Contents

  1. Chapter 1 Introduction to Java
  2. Chapter 2 Data Types and Operators
  3. Chapter 3 Control Statements
  4. Chapter 4 Object-Oriented Basics
  5. Chapter 5 Object-Oriented Advancement
  6. Chapter 6 Exception Mechanism
  7. Chapter 7 Arrays
  8. Chapter 8 Common Classes
  9. Chapter 9 Containers
  10. Chapter 10 IO Stream Technology
  11. Chapter 11 Multithreading Technology
  12. Chapter 12 Network Programming
  13. Chapter 13 Airplane Game Project
  14. Chapter 14 Swing Basics
  15. Chapter 15 Event Model
  16. Chapter 16 Other Controls in Swing
  17. Chapter 17 Reflection Mechanism
  18. Chapter 18 Core Design Patterns
  19. Appendix Table of Contents for the Java 300-Episode Large-Scale Teaching Video

FAQ

这本书适合完全零基础的人读吗?
适合。全书从计算机语言发展史、JDK安装与环境变量配置讲起,第1章就带读者用记事本和Eclipse写第一个程序并完成桌球小游戏,入门门槛较低;但控制语句、数组等章节练习量较大,需要读者愿意动手。
学完这本书能达到什么水平?
可以系统掌握Java SE的语法、面向对象、异常、数组、常用类、容器、IO、多线程、网络编程与反射,并对JVM内存和常见设计模式有初步认识,具备继续学习框架和做小项目的基础,但书中不涉及Spring等企业级框架。
书里的代码和视频资源怎么获取?
据清华大学出版社图书页面说明,本书配套源代码与课件可在出版社网站该书的资源下载处获取;书末附有配套《Java 300集大型教学视频》的目录说明,可配合视频同步学习。
这本书和《Java编程思想》相比如何选择?
两者定位不同。《实战Java程序设计》偏教学与实战,案例多、节奏快,适合入门和面试复习;《Java编程思想》更偏语言思想与体系的深度阐述,篇幅与难度都更大,适合有一定基础后精读。零基础读者通常先读前者更顺。
现在Java版本更新很快,这本书会不会过时?
书中示例以Java 8和Eclipse为基准,基础语法、面向对象、集合、IO、多线程等核心内容并未过时;但var、模块化、新版本集合与并发工具等未覆盖,建议阅读时用新版JDK和IDEA练习,并补充官方文档。

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.

Top rated in the same category