Open menu

Java

Audience

Java programmers wishing to gain an appreciation and practical understanding of the new features available in Oracle's Java 8.

Prerequisites

Good experience with Java SE 7.

Duration

3 days. Hands-on.

This course is available on site only. Please call for details.

Course Objectives

Java 8 is a major evolution in the Java programming language and platform. The language has been expanded dramatically to support lambda expressions, functional programming styles, and enhanced performance. The Java libraries have been extended significantly to take advantage of these new language features and to offer many improvements in areas such as concurrency, security, and JavaScript integration.

Delegates will learn:

  • Using lambda expressions
  • Understanding method and constructor references
  • Defining and using functional interfaces
  • Using sequential and parallel streams
  • Using the enhanced concurrency and collection API's
  • Understanding Java 8 security features
  • Understanding additional API and language improvements

Course Content

Setting the scene
What is Java 8?
Where can I get it
What tools are available

Lambda expressions
What are lambda expressions
Formal syntax for lambda expressions
Lambda expression simple syntax
Lambda expressions that return a value
Lambda expressions with multiple arguments
Lambda expressions and scope
Common usage scenarios

Method enhancements
Method references
Constructor references
Default methods
Static methods in interfaces

New functional interfaces
Function
UnaryOperator
BiFunction
BinaryOperator
Predicate
Consumer
Supplier
BinaryOperator
Additional new functional interfaces

Streams
Sequential vs. parallel streams
Immediate vs. terminal operations
Stream example
Lazy evaluation
A closer look at immediate and terminal operations
Primitive-specialized streams

Enhanced collections API
Iteration
New methods in List
New methods in Map
Parallel array processing

Enhanced concurrency API
ConcurrentHashMap
CompletableFuture
CountedCompleter
Adders and accumulators
Additional new features

Additional Java 8 Features 
Unsigned arithmetic
New date/time API
Base64 encoding and decoding
Annotation changes
Miscellaneous new features

Java 8 Security features
Overview
Privilege checking
Keystore enhancements
Cryptography enhancements

Nashorn JavaScript Engine
Getting started with Nashorn
Accessing Java classes in JavaScript
Additional techniques

Verhoef Training Ltd.

11 Kingsmead Square
Bath, BA1 2AB
United Kingdom

Tel: +44(0)1225 339705

Email: info@verhoef-training.co.uk

Become a Trainer

Ever thought about using your skills to help others?

Call us to find out about how you can teach for Verhoef.

Tel: +44(0)1225 339705