Book description
Eagerly anticipated by millions of programmers, Java SE 8 is the most important Java update in many years. The addition of lambda expressions (closures) and streams represents the biggest change to Java programming since the introduction of generics and annotations.
Now, with Java SE 8 for the Really Impatient, internationally renowned Java author Cay S. Horstmann concisely introduces Java 8’s most valuable new features (plus a few Java 7 innovations that haven’t gotten the attention they deserve). If you’re an experienced Java programmer, Horstmann’s practical insights and sample code will help you quickly take advantage of these and other Java language and platform improvements. This indispensable guide includes
Coverage of using lambda expressions (closures) to write computation “snippets” that can be passed to utility functions
The brand-new streams API that makes Java collections far more flexible and efficient
Major updates to concurrent programming that make use of lambda expressions (filter/map/reduce) and that provide dramatic performance improvements for shared counters and hash tables
A full chapter with advice on how you can put lambda expressions to work in your own programs
Coverage of the long-awaited introduction of a well-designed date/time/calendar library (JSR 310)
A concise introduction to JavaFX, which is positioned to replace Swing GUIs, and to the Nashorn Javascript engine
A thorough discussion of many small library changes that make Java programming more productive and enjoyable
This is the first title to cover all of these highly anticipated improvements and is invaluable for anyone who wants to write tomorrow’s most robust, efficient, and secure Java code.
Table of contents
- About This eBook
- Title Page
- Copyright Page
- Dedication Page
- Contents
- Preface
- About the Author
- Chapter 1. Lambda Expressions
-
Chapter 2. The Stream API
- 2.1. From Iteration to Stream Operations
- 2.2. Stream Creation
- 2.3. The filter, map, and flatMap Methods
- 2.4. Extracting Substreams and Combining Streams
- 2.5. Stateful Transformations
- 2.6. Simple Reductions
- 2.7. The Optional Type
- 2.8. Reduction Operations
- 2.9. Collecting Results
- 2.10. Collecting into Maps
- 2.11. Grouping and Partitioning
- 2.12. Primitive Type Streams
- 2.13. Parallel Streams
- 2.14. Functional Interfaces
- Exercises
- Chapter 3. Programming with Lambdas
- Chapter 4. JavaFX
- Chapter 5. The New Date and Time API
- Chapter 6. Concurrency Enhancements
-
Chapter 7. The Nashorn JavaScript Engine
- 7.1. Running Nashorn from the Command Line
- 7.2. Running Nashorn from Java
- 7.3. Invoking Methods
- 7.4. Constructing Objects
- 7.5. Strings
- 7.6. Numbers
- 7.7. Working with Arrays
- 7.8. Lists and Maps
- 7.9. Lambdas
- 7.10. Extending Java Classes and Implementing Java Interfaces
- 7.11. Exceptions
- 7.12. Shell Scripting
- 7.13. Nashorn and JavaFX
- Exercises
- Chapter 8. Miscellaneous Goodies
- Chapter 9. Java 7 Features That You May Have Missed
- Index
Product information
- Title: Java SE 8 for the Really Impatient
- Author(s):
- Release date: January 2014
- Publisher(s): Addison-Wesley Professional
- ISBN: 9780133430202
You might also like
book
Mastering Concurrency Programming with Java 8
Master the principles and techniques of multithreaded programming with the Java 8 Concurrency API About This …
book
Java 8 Lambdas
If you’re a developer with core Java SE skills, this hands-on book takes you through the …
video
Java 8 in Action video edition
"A great and concise guide to what’s new in Java8, with plenty of examples to get …
book
Functional Programming in Java
Functional Programming in Java teaches Java developers how to incorporate the most powerful benefits of functional …