Java 8 in Action
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已掌握 Java 基础语法与面向对象、希望系统学习 Java 8 新特性的开发者
- 日常代码中大量使用 for 循环遍历集合、想转向声明式写法的工程师
- 准备技术面试、需要吃透 Lambda 与 Stream 考点的求职者
- 需要使用 Optional、CompletableFuture 和新时间 API 改善项目代码的中级开发者
- 团队技术负责人,希望为组内确立统一的 Java 8 编码范式
Not a good fit for
- 完全没有 Java 基础、尚未理解类、接口、泛型的初学者
- 只想查 API 用法、希望当速查手册使用的读者
- 只关心 Spring Boot、微服务等框架实战,不打算补语言基础的开发者
- 已在生产中使用 Java 17 及以上版本、需要了解 record、switch 模式匹配等新特性的资深工程师
Reading tips
- 第 1 至 3 章务必精读并亲手敲代码,行为参数化与 Lambda 的思维方式是全书地基
- 第 2 部分边读边把项目里已有的循环筛选、分组统计改写成 Stream 版本,效果最明显
- 并行流与新日期时间 API 两处容易误用,读完先在非核心业务中小范围试点再推广
- 每章末的测验先自己作答再看答案,用来检验是否真正理解而非只是看懂了代码
About the publisher
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
- Part 1 Fundamentals
- Chapter 1 Why Care About Java 8
- 1.1 Why Java Keeps Changing
- 1.2 Functions in Java
- 1.3 Streams
- 1.4 Default Methods
- 1.5 Other Good Ideas from Functional Programming
- 1.6 Summary
- Chapter 2 Passing Code Through Behavior Parameterization
- 2.1 Coping with Changing Requirements
- 2.2 Behavior Parameterization
- 2.3 Tackling Verbosity (Anonymous Classes and Lambdas)
- 2.4 Real-World Examples (Comparator, Runnable, GUI Event Handling)
- 2.5 Summary
- Chapter 3 Lambda Expressions
- 3.1 A First Look at Lambdas
- 3.2 Where and How to Use Lambdas (Functional Interfaces, Function Descriptors)
- 3.3 Putting Lambdas into Practice: The Execute-Around Pattern
- 3.4 Using Functional Interfaces (Predicate, Consumer, Function)
- 3.5 Type Checking, Type Inference and Restrictions
- Chapter 4 Introducing Streams
- Chapter 5 Working with Streams
- Chapter 6 Collecting Data with Streams
- Chapter 7 Parallel Data Processing and Performance
- Part 2 Functional-style Data Processing
- Part 3 Effective Java 8 Programming (Refactoring, Optional, CompletableFuture, the New Date and Time API)
- Part 4 Beyond Java 8
- Chapter 13 Thinking Functionally
- Chapter 14 Techniques of Functional Programming
- Chapter 15 Mixing Object-Oriented and Functional Programming: Java 8 and Scala Compared
- Chapter 16 Conclusions and Java's Future
- Appendix A Updates to Other Language Features
- Appendix B Library Updates
- Appendix C Performing Multiple Operations on the Same Stream Concurrently
- Appendix D Lambda Expressions and JVM Bytecode
FAQ
这本书和《Java实战(第2版)》有什么区别?
零基础可以读这本书吗?
书中的代码示例可以直接运行吗?
现在 Java 都更新到 20 多个版本了,读只讲 Java 8 的书还有意义吗?
这本书的豆瓣评分是多少?
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.