25,000+ Courses Nationwide
0345 4506120

Java New Features

This Java New Features training course provides hands-on experience with lambda expressions introduced in Java 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.

Key Features of this Java New Features Training:

  • After-course instructor coaching benefit
  • After-course computing sandbox included
  • End of course exam

Who Should Attend This Course

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 to create less error-prone and simpler concurrent programs.

Is this course right for me?

This course is suitable for people who are familiar with core Java programming. It aims to get the attendee to the point where they can take advantage of features in Java and later to:

  • Pass code as data in method calls and returns
  • Evolve APIs while maintaining backwards compatibility by using default methods
  • Perform date and time manipulations with the much improved Date and Time API
  • Instantiate streams and user them to process data
  • Perform parallel processing with streams
  • Perform asynchronous processing with streams

This course builds on the basic Java programming constructs. For a person who does not already program in Java the ideal course is the four-day Introduction to Java Programming Training while for best practises and design patterns one would look at Java Best Practises and Design Patterns Training. There is a specialised course for Java Web Services, Building REST and SOAP Web Services with Java Training, as well as one for Spring and Hibernate, Java Spring and Hibernate Training: Developing Enterprise Java Applications.

How much time is spent on hands-on exercises?

Approximately 40% of time on the course is devoted to hands-on exercises, allowing you to gain extensive experience with lambda expressions. Exercises include:

  • Employing lambda expressions in the Execute Around Pattern
  • Working with different time zones and calendars
  • Evolving APIs by adding default methods to interfaces
  • Filtering and slicing data with streams
  • Employing Collectors for mapping and reducing
  • Turning a sequential stream into a parallel one

Select specific date to see price, venue and full details.

Learning Objectives

  • 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

Pre-Requisites

What background do I need for this Java New Features course?

The course assumes a background in Java programming with Java 7.

Course Content

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

Related Courses

Privacy Notice

In order to provide you with the service requested we will need to retain and use your contact information in accordance with our Privacy Notice. If you choose to provide us with this information you explicitly consent to us using the information as necessary to provide the requested service to you. If you do not agree please do not proceed to request the service from us.

Marketing Permissions

Would you like to receive our newsletter and other information on products and services which we think will be of interest to you by email. We will always treat your information with care and in accordance with our Privacy Notice. You are free to withdraw this permission at any time.

 

We work with the best