Java JDK 8 Study Notes

Lin XinliangTsinghua University Press2015

No rating yet
Word count
980K words
Chapters
20
ISBN
9787302388982

Tags

Computing Software Tutorials Exception HandlingNew FeaturesProgramming Design编程Programming LanguageBeginner TutorialStep-by-Step GuideBasic GrammarTextbookCertification Training

Summary

Java JDK 8 Study Notes distills Lin Xinliang's (online name "Liang Gege") years of experience teaching Java and preparing students for certification, and was published by Tsinghua University Press in 2015. The whole book was comprehensively revised around the new features of Java SE 8, with both the chapter structure and sample code rewritten, comprising 18 chapters plus two appendices. The opening chapters start from the positioning of the Java platform, clarify the three major Java platforms, JCP and JSR, and the relationship between Oracle JDK and OpenJDK, and explain the differences among JVM, JRE, JDK, and IDE, before moving from Hello World to the use of PATH, CLASSPATH, SOURCEPATH, and packages. The middle section covers the main body of the language and class libraries: basic syntax, classes and objects, boxing and unboxing, arrays and strings, encapsulation, inheritance and polymorphism, interfaces, exception handling, Collection and Map, input/output, and threads and the parallel API. The later section is the heart of the book: Lambda expressions, Stream, the new date and time API, NIO and NIO2, general APIs, database integration (JDBC), reflection and class loaders, custom generics, enums, and annotations. The author habitually reads the Java SE API source first, then uses examples to show how syntax is actually used in the class libraries; each chapter ends with "Key Review" and "Exercises," and NetBeans sample projects, Lab operation documents, and instructional videos help readers connect book knowledge with hands-on work in the IDE.

Editor's review

市面上讲Java SE 8的书不少,这本书的长处是“讲清楚为什么”。作者林信良是台湾升阳、Oracle授权训练中心的讲师,也是SUN官方教材主要编写成员之一,他在书里刻意把JVM、JRE、Java SE API、JDK和IDE五者的关系摆在最前面,很多初学者卡住的地方——PATH、CLASSPATH、SOURCEPATH到底谁管什么、javac和java各做什么——都被单列章节讲透,这一点在同类入门书里并不多见。其次,全书以Java SE API源码为线索解释语法,读者学的不只是“能不能跑”,而是类库设计者为何这样设计;再配合NetBeans范例项目、Lab文档和教学视频,纸上代码能落到IDE里跑通。针对JDK 8新增的Lambda表达式、Stream与新时间日期API,书中也给了成规模的专题章节,涵盖OCP/JP考试关注的范围。平心而论,本书篇幅偏大、以文字叙述为主,不适合当作三小时速通手册;但如果你愿意一章一章动手敲,它会帮你把Java基础的地基打得更牢固。

Who it's for

A good fit for

Not a good fit for

Reading tips

  1. 先按第1—2章把JDK、CLASS_PATH环境搭好并跑通Hello World,环境不通不要急着往后翻
  2. 每章结尾的“重点复习”和课后练习建议动手完成,Lab文档与范例项目配合使用效果最好
  3. 第12—14章(Lambda、时间日期、NIO2)可与第9—11章交叉阅读,边学集合与IO边看新API的改进动机
  4. 书中代码可在NetBeans中逐章导入,建议自己重写关键示例,而不是仅运行随书工程

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 Overview of the Java Platform
  2. Chapter 2 From JDK to IDE
  3. Chapter 3 Basic Syntax
  4. Chapter 4 Understanding Objects
  5. Chapter 5 Object Encapsulation
  6. Chapter 6 Inheritance and Polymorphism
  7. Chapter 7 Interfaces and Polymorphism
  8. Chapter 8 Exception Handling
  9. Chapter 9 Collection and Map
  10. Chapter 10 Input/Output
  11. Chapter 11 Threads and the Parallel API
  12. Chapter 12 Lambda
  13. Chapter 13 Time and Date
  14. Chapter 14 NIO and NIO2
  15. Chapter 15 General APIs
  16. Chapter 16 Database Integration
  17. Chapter 17 Reflection and Class Loaders
  18. Chapter 18 Custom Generics, Enums, and Annotations
  19. Appendix A How to Use the Book's Projects
  20. Appendix B Window Programming

FAQ

这本书适合零基础学Java吗? 可以。本书从Java平台是什么、如何下载安装JDK讲起,前面几章专门处理环境变量和第一个程序,适合没有编程基础的读者。不过篇幅较大,需要耐心按顺序读并动手练习,不能只翻不做。
JDK 8已经很老了,现在读还有用吗? 书中基础语法、面向对象、集合、IO、多线程等内容在后续Java版本中基本通用,Lambda与新日期时间API也是Java 8引入并沿用至今的核心特性。只是部分工具链和写法已有更新,遇到差异时建议对照当前JDK官方文档。
书里的例子用什么IDE?需要额外买软件吗? 书中以NetBeans为教学IDE,随书提供各章NetBeans范例项目和Lab项目,NetBeans本身是免费开源的。若习惯IntelliJ IDEA或Eclipse,导入Java项目同样可行,只是界面操作步骤需要自行对应。
这本书和《Java JDK 7学习笔记》有什么区别? 两者同属林信良“学习笔记”系列,JDK 8版做了全面改版:章节架构与范例代码重新编写,新增Lambda表达式、Stream、新时间日期API与NIO2等Java SE 8特性内容,并保留JVM/JRE/JDK/IDE对照这条主线。

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.

About the author

Lin Xinliang Author

Lin Xinliang is an author of computer technology books. Publicly available information about him is limited: his nationality, dates of birth and death, educational background, and professional experience are not definitively recorded. Judging from the two works held in the library, his writing centers on the study and practical application of programming languages: one is the Python Technical Handbook, and the other is Java JDK 8 Study Notes. These two books correspond respectively to Python and Java, two mainstream languages. The former leans toward technical reference and consultation, while the latter records study points based on JDK 8. His focus thus appears to be on providing readers with practical, clearly organized introductory and reference materials. The works are classified under computer and software learning, indicating that they are aimed at readers who need to systematically master programming tools. In the absence of biographical material, the subject matter of his works itself serves as the main clue to understanding this author.