A quick overview of most of the new features of Java 8. The course covers lambda expressions and the Stream API but also many new additions scattered all around the JDK. JavaFX and Nashorn are also quickly covered.
Passionate about programming computers for over 20 years, Jose made his debut in assembler and C, C for SIMD parallel machines before adopting Java as an object-oriented language. Assistant professor in Paris North University for more than 15 years, Jose also brings his expertise to many projects, in various industrial fields.
Java 8 Stream API and Collectors Hello and welcome to the second module of this course, What's New in Java 8. This second module is called Streams & Collectors, and what we are going to see in this module is how to use this new API called the Stream API and see how those streams are going to be connected to collectors. First, let us browse this Module Outline. We'll begin by talking about the map/filter/reduce algorithm. It is a gentle go to them, not particularly related to the Java technology, to the Java language, or to the Java platform, but we need to understand that for the rest of the course. Then we present what is a Stream exactly? It is a brand new notion in Java 8 and new API, so we need to describe that very precisely. And, then, we'll see the main Patterns used to build a Stream. We'll build our first streams of data, and, as a forethought, begin to build operations on a stream.
Java 8 Date and Time API Hello, my name is Jose, welcome to this third module of this course, What's New in Java 8. We'll talk about this new Java Date and Time API introduced in Java 8. Let us quickly browse the outline of this module. First of all, I would like to make an introduction, why do we need a new Date API in Java 8, and talk about the defaults, the drawbacks, the caveats in this old java. util. Date class. And then I will present this new Date API from Java 8 through 7 key concepts. The first two concepts are Instant and Duration. We'll see what they mean in the context of this new API. And then we will talk about LocalDate and Period, and then TemporalAdjusters. TemportalAdjusters are very powerful tools to make calculations over dates. We'll talk about LocalTime and ZonedTime. You know that when we deal with time and date we need to talk about time zones, and this is precisely what we are going to do here. And at last, we'll talk about Date formatters to format dates and to print out dates, hours, and periods.