Die nächsten Trainingstermine

logo

MODERN DEVELOPMENT WITH JAVA 8

Eppleton IT Consulting, München
04 Dezember - 2017  2 Tage

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

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

Course language: english