Öppna kurser

Java 8 New Features Training

This Java 8 New Features training course provides hands-on experience with lambda expressions introduced in Java 8 as well as many other changes to the language and libraries. Attendees will get a full appreciation of functional-style programming and the new idioms made possible by lambda expressions that make their code easier to read and understand. The course then explores the Streams API, which lets you write powerful code that processes a collection of data in a declarative way. Attendees will get a full appreciation of what streams are and how they can use them in their programs to process collections of data concisely and efficiently.

Distansutbildning i samarbete med Learsning Tree.

Utbildningsmål

  • Pass code as parameters to methods using lambda expressions to make your code simpler and easier to understand
  • Manipulate, format and parse dates with the Date and Time API
  • Leverage default methods to achieve evolution of interfaces while maintaining compatibility with older code
  • Process data with Java streams
  • Take advantage of stream parallel processing to achieve efficiency
  • Perform asynchronous programming with CompletableFuture
  • Read and write files using Java NIO

Målgrupp

Anyone developing Java applications who has core Java SE skills and wishes to capitalise on the addition of lambda expressions and streams library in Java 8 to create less error-prone and simpler concurrent programs.

Kursinnehåll

Lambda Expressions

  • Leveraging functional interfaces to pass code as data to methods
  • Contrasting lambda expressions and anonymous classes
  • Method references and constructor references
  • Invoking higher order functions

Default Methods

  • Evolving APIs
  • Employing new usage patterns for default methods
  • Invoking higher order functions

The Date and Time API and Other Changes

  • Formatting and parsing with the Date and Time API
  • Using Optional as a better alternative to null
  • Expanding the use of annotations

Streams

  • Leveraging streams to process data
  • Contrasting external and internal iteration
  • Facilitating common stream operations
  • Invoking higher order functions

Collecting Data with Streams

  • Implementing Collectors
  • Reducing and summarising data
  • Enabling grouping and partitioning
  • Collecting data into Maps

Concurrency

  • Executing parallel streams
  • Dividing and conquering with Spliterator
  • Comparing imperative data processing to streams
  • Implementing an asynchronous API Important