Modern Development with Java 8

Learn how to benefit from all Java 8 features and library updates

Get in touch

Java 8 is the largest update to Java in its history. Some of the best ideas from functional programming are migrating their way into Java 8. This means easier to read, more flexible code that scales to multicore.

At the end of this course, you will be ready to use Java 8 on your day job and be familiar with the cutting edge programming approaches which allow you to write more flexible and concise code.

Duration: Two days


Course Outline

Day 1

Lambda expressions

  • Why Java 8?
  • Behaviour Parameterisation
  • What is a lambda?
  • Functional interfaces: where to use lambda expressions?
  • Method references: first-class functions in Java 8
  • Advanced details

Streams

  • Collection Processing
  • Stream operations and patterns
  • Stream Optimization

Collectors

  • Grouping and partitioning
  • Collection Operations
  • Arithmetic collectors
  • Advanced Queries
  • Mutable Reduction

Day 2

Data Parallelism

  • What is Data Parallelism?
  • Why is this important?
  • Parallelising your streams
  • Parallel Gotchas
  • Decomposition performance

Testing and Debugging Lambdas

  • Unit testing lambda expressions
  • Debugging with laziness
  • Stack traces

Default and static methods on interfaces

  • Motivation for default methods
  • Static methods in interface
  • Useful default methods
  • Patterns for default methods
  • Resolution rules

Enhanced Design with Lambdas

  • Execute around: resource handling
  • Deferred execution: Logging
  • Design patterns

Date & Time in Java 8

  • The problem with existing date and time libraries
  • The core classes: LocalDate/LocalTime
  • Common API Patterns
  • Timezones

The Optional data type

  • The problem with null
  • How Optional improves upon null
  • How to use Optional in your code

CompletableFuture

  • Synchronous vs. Asynchronous
  • Refactoring Futures
  • Common patterns with CompletableFutures

Our books


Schedule this course

Let us know your requirements and we will craft a tailored proposal for your team.

Drop us a line with a phone number to call back at contact@iteratrlearning.com

You can also give us a call directly on +44 7931 144 219