Java 8 in Action
Tags
Summary
Editor's review
Who it's for
A good fit for
- 已有Java基础语法、想系统补上Java 8新特性的初中级开发者
- 公司代码库仍在Java 8、需要重构遗留代码的工程师
- 准备面试中被频繁问及Lambda、Stream、Optional的程序员
- 想把命令式代码转向函数式风格的架构师与技术负责人
Not a good fit for
- 完全没有Java基础、连集合与接口都不熟悉的入门读者
- 只想学Java 17或更高版本最新特性的读者,可改看本书的更新版本
- 期待纯理论语言学研究而非工程实践的读者
Reading tips
- 建议边读边敲代码:把书中苹果筛选、交易员交易等例子亲手重构成Lambda与Stream版本
- 第一至三章务必读透,行为参数化是理解全书后续内容的基础
- 第三部分的第8章可对照自己的项目做一次小范围重构实践
- 第四部分可视兴趣选读,初读可先跳过Scala比较一章
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 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
- 2.4 Real-World Examples
- 2.5 Summary
- Chapter 3 Lambda Expressions
- 3.1 Lambdas in a Nutshell
- 3.2 Where and How to Use Lambdas
- 3.3 Putting Lambdas into Practice: The Execute-Around Pattern
- 3.4 Using Functional Interfaces
- 3.5 Type Checking, Type Inference, and Restrictions
- 3.6 Method References
- 3.7 Lambdas and Method References in Practice
- 3.8 Useful Methods for Composing Lambdas
- 3.9 Similar Ideas in Mathematics
- 3.10 Summary
- Part 2 Functional Data Processing
- Chapter 4 Introducing Streams
- Chapter 5 Working with Streams
- Chapter 6 Collecting Data with Streams
- Chapter 7 Parallel Data Processing and Performance
- Part 3 Effective Java 8 Programming
- Chapter 8 Refactoring, Testing, and Debugging
- Chapter 9 Default Methods
- Chapter 10 Replacing null with Optional
- Chapter 11 CompletableFuture: Composable Asynchronous Programming
- Chapter 12 The New Date and Time API
- Part 4 Beyond Java 8
- Chapter 13 Functional Thinking
- Chapter 14 Techniques of Functional Programming
- Chapter 15 Mixing Object-Oriented and Functional Programming: Java 8 vs. Scala
FAQ
这本书适合零基础学Java的人吗?
这本书讲的Java 8特性和新版JDK还通用吗?
豆瓣评分和页数是多少?
这本书和《Java实战(第2版)》是什么关系?
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.