Migrating from Java 7 to Java 8 | Transitioning Java 7 to Java 8

Jumpstart your Java 8 Skills | Explore New Features, Lambda Expressions, Collection API, Streams, Concurrency and More

TT2130

Introductory and Beyond

2 Days

Course Overview

Migrating from Java 7 to Java 8 | Transitioning to Java 8 is a two-day, hands-on fast-track course geared for developers who have prior working knowledge of earlier versions of Java.  Throughout the course students learn the best practices for taking advantage of the new functional programming constructs in Java as well as other new features in this major update to the Java programming language.

Working within in an engaging, hands-on learning environment, guided by our expert team, attendees will learn:

  • What functional programming means and what it brings to the table
  • How Lambda expressions and functional interfaces can greatly enhance other aspects of Java
  • Explore the new ‘features’ of the Collection API
  • To use the new Stream constructs to work with Collections and Collectors
  • How to work with default methods and pass methods as arguments
  • How to use the new features to support concurrency in multi-code systems
  • To work with the new Date/Time API and other new features
  • Specific Java 8 features covered include: Functional programming; Anonymous functions; Lambda expressions and default methods; Streams and Collectors; New Date/Time API; StringJoiner and repeating annotations

Course Objectives

Students who attend this course will leave armed with the required skills to develop maintainable code that easily scales into multi-core environments. Geared for developers currently working in Java 6 or 7 who need to migrate their skills or applications to Java 8, this course will teach students everything they need to successfully master and implement the latest features and benefits of Java 8 and become an effective Java 8 developer. 

Working within in an engaging, hands-on learning environment, guided by our expert team, attendees will learn:

  • What functional programming means and what it brings to the table
  • How Lambda expressions and functional interfaces can greatly enhance other aspects of Java
  • Explore the new ‘features’ of the Collection API
  • To use the new Stream constructs to work with Collections and Collectors
  • How to work with default methods and pass methods as arguments
  • How to use the new features to support concurrency in multi-code systems
  • To work with the new Date/Time API and other new features
  • Specific Java 8 features covered include: Functional programming; Anonymous functions; Lambda expressions and default methods; Streams and Collectors; New Date/Time API; StringJoiner and repeating annotations

Course Prerequisites

This is an introductory and beyond-level Java course, designed for experienced Java developers who wish to get up and running with Java 8.  Attendees should have a working knowledge of developing Java applications.  

Follow-On Courses / Take After: Our core Java training courses provide students with a solid foundation for continued learning based on role, goals, or their areas of specialty.  Our Java developer learning paths offer a wide variety of follow-on courses such as:

  • Continued Java & JEE training: Intermediate to Advanced Java, JEE Essentials, Java for Web, Spring / Spring Boot, Microservices / Web Services / REST, Reactive Java Programming / RxJava, Tuning & Performance, Design Patterns & More
  • TDD / Test Driven Development, JUnit / Unit Testing, Agile development training
  • Secure Java Coding / Java Security and secure application development training
  • Mobile developer / Android training

Please see the Related Courses tab for specific Pre-Requisite courses, Related Courses or Follow On training options. Our team will be happy to help you with recommendations for next steps in your Learning Journey.

Course Agenda

Please note that this list of topics is based on our standard course offering, evolved from typical industry uses and trends. We will work with you to tune this course and level of coverage to target the skills you need most.

Session: Introduction to Java 8

Lesson: Overview of Java 8 Features

  • Overview of Java 8 features and enhancements
  • Anonymous functions, Streams

Lesson: Evolving Interfaces

  • Interfaces in Java 8
  • Default methods
  • Static methods
  • Multiple Inheritance?

Session: Introduction to Lambda Expressions

Lesson: Functional Programming

  • Functional vs OO Programming
  • Anonymous Inner-classes
  • Utility Methods
  • Lambda Expressions

Lesson: Lambda Expressions and Functional Interface

  • Lambda Expression Syntax
  • Functional Interfaces
  • Type Inference in Java 8
  • Method references

Session: Collection Updates

Lesson: Java 8 Collection Updates

  • Introduce the ConcurrentHashMap
  • Lambda expressions and Collections

Session: Streams

Lesson: Streams

  • Processing Collections of data
  • The Stream interface
  • Reduction and Parallelism
  • Filtering collection data
  • Sorting Collection data
  • Map collection data
  • Find elements in Stream
  • Numeric Streams
  • Create infinite Streams
  • Sources for using Streams

Lesson: Collectors

  • Creating Collections from a Stream
  • Group elements in the Stream
  • Multi-level grouping of elements
  • Partitioning Streams

Session: Additional Java 8 Enhancements

Lesson: The new Date/Time API

  • Introduce the new Date/Time API
  • LocalDate, LocalDateTime, etc.
  • Formatting Dates
  • Working with time zones
  • Manipulate date/time values

Lesson: Optional

  • Introduce Optional
  • Implement Optional attributes
  • Lambda expressions and Optional

Lesson: Other new Java 8 features

  • StringJoiner
  • Repeating and Type Annotations
  • Parallel Array Sorting
  • Improved type inference
  • Method parameter reflection
  • Updated command line tooling

Lesson: Java 8 Concurrency Updates

  • The common thread pool
  • Atomic variables
  • LongAdder and LongAccumulator
  • CompletableFuture
  • Non-blocking asynchronous tasks

Lesson: Nashorn JavaScript Engine (Optional)

  • Working with JavaScript and Java
  • Accessing Nashorn
  • Executing JavaScript from Java
  • Executing Java from JavaScript
  • Implementing a Java Interface
  • Alternatives to Nashorn

Course Materials

Our robust course materials include much more than a simple slideshow presentation handout.  Student materials include a comprehensive hard-copy course manual, complete with detailed course notes, detailed lab manuals and workbooks, code samples, software tutorials, diagrams and current reference materials, all directly related to the course at hand, indexed for ease of use. Step-by-step lab instructions, software tutorials and project descriptions are clearly illustrated and commented for maximum learning.  

Raise the bar for advancing technology skills

Attend a Class!

Live scheduled classes are listed below or browse our full course catalog anytime

Special Offers

We regulary offer discounts for individuals, groups and corporate teams. Contact us

Custom Team Training

Check out custom training solutions planned around your unique needs and skills.

EveryCourse Extras

Exclusive materials, ongoing support and a free live course refresh with every class.

Mix, Match & Master!
2FOR1: Two Courses, One Price!

Enroll in *any* two public courses (for 2023 *OR* 2024 dates!) by December 31, for one price!  Learn something new, or share the promo!

Click for Details & Additional Offers

Learn. Explore. Advance!

Extend your training investment! Recorded sessions, free re-sits and after course support included with Every Course
Trivera MiniCamps
Gain the skills you need with less time in the classroom with our short course, live-online hands-on events
Trivera QuickSkills: Free Courses and Webinars
Training on us! Keep your skills current with free live events, courses & webinars
Trivera AfterCourse: Coaching and Support
Expert level after-training support to help organizations put new training skills into practice on the job

The voices of our customers speak volumes

Special Offers
Limited Offer for most courses.

SAVE 50%

Learn More