Instructor-led training
Migrating to Java 8 Version 8.0 Training in Spokane Valley, Washington
This course shows Java-6 developers the new language features in Java 7 and Java 8 -- and more importantly illustrates best programming practices as they've been affected by these new features.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in Spokane Valley, Washington or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
Module 1. New Features in Java 7
Chapter 1. New features in Java 7
- Binary Literals
- Integer Literals with Underscores
- String Types in switch/case
- Auto-Detection of Type Parameters
- Try-with-Resources
- Multiple Exceptions in catch
Module 2. New Features in Java 8
Chapter 1. Functional Programming
- Passing Behavior as a Parameter
- Inner Classes
- Functional Interfaces
- Built-In Functional Interfaces
- Lambda Expressions
- Scope and Visibility
- Deferred Execution
- Method References
- Creational Methods
- Designing for Functional Programming
- Default Methods
Chapter 2. Streams
- The Stream Processing Model
- Streams
- Relationship to Collections
- Advantages and Disadvantages
- Iterating, Filtering, and Mapping
- Primitive-Type Streams
- Aggregate Functions and Statistics
- Sorting
- Generating, Limiting, and Reducing
- Finding and Matching
- Grouping
- Flattening and Traversing
- Sequential vs. Parallel Processing
Chapter 3. The Time API
- A History of Time ... in Java
- Limitations of Date and Calendar
- The Time API
- Temporal Types
- Accessors and Adjusters
- Formatting
- Decomposition Into Fields
- Date Arithmetic
- Managing Precision
- Duration and Period
- Time Zones and Offsets
- Converting Between Time Zones
What makes this migration harder than it looks
The new syntax is quick to learn. The harder part is unlearning habits that Java 6 made necessary. The course says so itself: it is about best practices as the new features change them, not only about syntax.
The syllabus has two parts of different weight. Java 7 is a single chapter of small changes: binary literals, underscores in integer literals, strings in switch, type-parameter auto-detection, try-with-resources and multiple exceptions in one catch. Java 8 takes most of the day, in three layers that build on each other:
- Functional programming. It starts from passing behavior as a parameter and from inner classes, then moves to functional interfaces (including the built-in ones), lambda expressions, scope and visibility, deferred execution, method references and default methods. Lambdas follow different scoping rules than the inner classes they replace, which is a common source of confusion.
- Streams. This chapter covers the processing model, how streams relate to collections, and their advantages and disadvantages. Operations include filtering, mapping, sorting, grouping, flattening, finding and matching, plus reducing and aggregate statistics. Streams are lazy and consumed once, so they are not simply a different kind of collection. The chapter ends with sequential versus parallel processing, where a pipeline that looks correct can behave differently under parallel execution.
- The Time API. It covers the limits of
DateandCalendar, temporal types, accessors and adjusters, formatting, date arithmetic, precision,DurationandPeriod, and time zones and offsets. The main adjustment is a new mental model of instants, local values and zoned values.
A common misconception is that a lambda is just shorter anonymous-class syntax. Designing APIs around functional interfaces and default methods is a different skill, and the course treats it as one under "Designing for Functional Programming."
Who it suits and what to take around it
The course is an accelerated one-day class for developers who already have solid Java 5 or Java 6 experience. That experience is the stated prerequisite, and the pace assumes it. It suits teams that maintain or extend existing Java code and need to read and write Java 7 and Java 8 idioms. Java SE 8 is in Extended Support only, with support listed until December 2030. Java SE 7 and earlier are out of support, so moving off them is a common reason to take the class.
Developers who also need the Java 5 and Java 6 features can pair it with the earlier course named in the course description, Migrating to Java 6.
For next steps, Advanced Java Language Topics is a one-day advanced follow-up for developers who want more depth once the Java 8 idioms are familiar. For broader advanced work, Advanced Java Programming is the longer option.
Organizations that run newer Java releases can ask for private training tailored to the versions they use through a training proposal request.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Cleaning up callback-heavy code. A team might maintain a Java 6 codebase full of anonymous inner classes used as comparators and listeners. Functional interfaces, lambda expressions and method references let them replace that boilerplate. The scope and visibility rules tell them which rewrites are safe.
- Reworking collection loops. A reporting module might use nested loops to filter, group and total records. Streams cover this with filtering, mapping, grouping, aggregate statistics and reduction. The sequential versus parallel material helps the team decide when parallelism is worth considering.
- Fixing date handling. A scheduling feature might depend on
DateandCalendararithmetic that breaks around time zone changes. The Time API's zoned types, date arithmetic,DurationandPeriod, and time zone conversion give it a clearer model. The same team can use try-with-resources to tighten up cleanup code in the same pass.
AI coding assistants for Java 7 and 8 migration
AI coding assistants handle the mechanical rewrites well. They can convert an anonymous class to a lambda, suggest a method reference, turn a simple loop into a stream pipeline, or wrap a closeable resource in try-with-resources. They can also draft unit tests around code before you change it.
They fail in specific ways for these topics:
- Version drift. Suggestions may use APIs or syntax from releases newer than Java 8, which will not compile on a Java 8 codebase.
- Parallel streams. An assistant may add
parallel()or mutate shared state inside a lambda, producing code that compiles but misbehaves under concurrency. - Time conversions. Automated
Date-to-Time-API rewrites can silently change time zone, offset or precision semantics. - Semantic changes. Replacing a loop with a stream can alter evaluation order, exception behavior or resource handling.
To verify, compile with the project's actual Java target. Run tests that cover behavior before and after each rewrite, including time zone boundary cases for date logic. Review any parallel pipeline for shared mutable state. Do not accept a bulk automated refactor without reading the diff.
Frequently asked questions
What level is this course, and what should I know first?
It is an accelerated one-day course for developers with solid Java 5 or Java 6 experience. It does not teach core Java from scratch.
What does the course cover?
Java 7 features (binary literals, underscores in literals, strings in switch, type-parameter auto-detection, try-with-resources, multi-catch), then Java 8 functional programming (lambdas, functional interfaces, method references, default methods), streams, and the Time API.
Does it cover Java 5 and Java 6 features?
No. The syllabus starts at Java 7. The course description points to an earlier course, Migrating to Java 6, for developers who need to cover that ground too.
Can this be delivered privately for our team, onsite or online?
Yes. HSG delivers private training for organizations, either onsite at the client's location or live online.
Can the content be customized?
Private training can be customized, including tailoring to the Java versions your organization uses. Use the training proposal request to describe your needs.
Training locations
Migrating to Java 8 Version 8.0 training across the U.S. and beyond.
We provide private Migrating to Java 8 Version 8.0 training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Migrating to Java 8 Version 8.0 training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.