Skip to main content

Instructor-led training

Intermediate and Advanced Java 8 Training in Sterling, Illinois

This is a fast-paced course suitable for developers with some previous experience in working with Java and Object-Oriented (OO) programming. The course can also be delivered to developers experienced in other OO languages (Python, C++, C#) but with limited Java exposure, as we…

What you'll learn

This is a fast-paced course suitable for developers with some previous experience in working with Java and Object-Oriented (OO) programming. The course can also be delivered to developers experienced in other OO languages (Python, C++, C#) but with limited Java exposure, as well as used as an advanced Java course for more experienced developers. There are numerous optional parts allowing you to tailor the coverage to your group. It includes an accelerated, yet thorough hands-on review of Java foundational concepts, with attention given to OO design and implementation principles. It then moves on to comprehensive coverage of more advanced topics in Java and OO development to provide participants with a strong grounding to use Java in a sophisticated and productive manner. This course covers far more than an introductory course, including important topics such as UML and Design Patterns, and using composition vs. inheritance, which are all key to creating well-structured OO systems. After these important areas, it moves on to advanced Java topics such as inner classes, reflection, writing generic classes, and functional programming with lambdas and streams. It teaches a number of useful techniques that enhance productivity and good system design - which may otherwise take Java developers years to absorb on their own. The course concludes with build tools and logging.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Sterling, Illinois 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 Training

Prerequisites

Solid understanding of OO concepts in Java.

Course Outline

Session 1: Review - Basics
Java Environment
Classes and Objects
Instance Variables, Methods, Constructors, Static Members
OO Principles: Data Encapsulation, Cohesion
Object Contracts: toString(), equals() and hashCode(), Comparable and Comparator
Packages, Enums, Arrays
Exceptions
 
Session 2: Review (Inheritance and Interfaces)
UML Overview
Inheritance
Definition and IS-A Relationship
Method Overriding, @Override
OO Principles: Principle of Substitutability, Polymorphism and Encapsulation of Type, Coupling, Open-Closed Principle
Constructor Chaining
Interfaces
Defining and Implementing, Interface Types
Interface Inheritance
New Interface Features in Java 8
Default Methods, Static Methods
Functional Interfaces
Guidelines
 
Session 3: JUnit
Overview
Tests, Assertions, and Fixtures
Writing and Running Tests
Assertions
Test Fixtures, @Before and @After, @BeforeClass and @AfterClass
Testing for Exceptions
Best Practices and Test-Driven Development Overview (TDD)
 
Session 4: Collections and Generics
Collections Overview
Generics and Type-Safe Collections
Diamond Operator
Lists, Sets, and Maps
Interfaces and Contracts
Iteration and Autoboxing
Utility Classes - Collections and Arrays
Writing Generic Classes
Inheritance with Generic Types
Wildcard Parameter Types
Type Erasure
 
Session 5: Techniques of Object Creation
Design Patterns Overview
Controlling Object Creation
Limitations of new Operator, Alternative Techniques
Singleton Pattern
Simple Factory
Factory Method Pattern
Other Techniques
Named Objects, JNDI
Dependency Injection Frameworks
 
Session 6: Using Composition and Inheritance Effectively
Inheritance and Composition - Pros and Cons
Composition and Delegation
HAS-A, USES Relationships
Strategy Pattern
Decorator Pattern
Façade and Other Patterns
Façade, Proxy, Template Method
 
Session 7: Inner Classes
Overview and Motivation
Stronger Encapsulation, Rules and Caveats
Defining and Using Inner Classes
Member-Level, Method-Local, Anonymous Classes
Static Nested Classes
Nested Classes, Nested Interfaces, Nested Enums
 
Session 8: Annotations
Overview
Using Annotations
Target and Retention Policy
Annotation Parameters, Parameter Shortcuts
Writing Custom Annotations
Syntax, Using the Meta-Annotations
Using a Custom Annotation
 
Session 9: Reflection
Overview and API
The Class Called Class
Obtaining and Inspecting Class Objects
Working with Objects Reflectively
Creating Instances, Invoking Methods, Setting Field Values
 
Session 10: Lambda Expressions
Overview
Functional Interfaces and Lambdas
Target Context
Using Lambda Expressions
Syntax, Lambda Compatibility
Variable Capture
Type Inference
Method References
Three Types of Method References
Refactoring Lambdas into Method References
 
Session 11: Streams
Overview
Streams vs. Collections
Anatomy of a Stream
Understanding the Stream API
Intermediate Operations and Stream Pipeline
Java 8 Functional Interfaces: Predicate, Comparator, Function, Consumer, Supplier
Stream Processing
Filtering, Sorting, Mapping
Terminal Operations
Collectors
Partitioning and Grouping
Reducing and Summarizing
Downstream Reductions
 
Session 12: Date/Time API
Overview
Dates, Times, and Instants
Creating, Parsing, and Formatting
Accessing Date and Time Fields
Deriving New Values
Time Zones
Periods and Durations
Intervals of Time: Date-Based and Time-Based
Adding and Subtracting Intervals
 
Session 13 (optional): Overview of Build Tools
Javadoc
Generating API Documentation
Doc Comments and Doc Tags
Ant
History and Overview
Buildfiles, Targets, and Tasks
Maven
Maven Concepts: Project, POM, Artifact, Naming, Dependency, Plugin, Repository
Convention over Configuration
Lifecycles and Phases
Plugins and Goals
 
Session 14 (optional): Logging and Log4j
Overview
Popular Logging Frameworks
Writing Log Messages
Creating Loggers and Writing Log Messages
Log Levels
Configuration
Appenders and Layouts
Logger Configuration and Logger Hierarchy

What makes this material hard to master

The syntax is rarely the obstacle. The harder part is design judgment, and the 14 sessions build toward it in order.

Foundations carry the rest. Sessions 1 and 2 review object contracts (equals(), hashCode(), Comparable and Comparator), inheritance, substitutability, coupling and the Open-Closed Principle. Later topics depend on them. Generic collections that misbehave, for instance, often trace back to a broken equals()/hashCode() pair.

Generics go beyond using List<String>. Session 4 covers writing generic classes, wildcard parameter types and type erasure. A common misconception is that generic type information exists at runtime. Erasure explains why that is not the case.

Patterns are choices among trade-offs. Sessions 5 and 6 cover Singleton, Simple Factory, Factory Method, Strategy, Decorator, Fa&ccedil;ade, Proxy and Template Method. They also compare inheritance with composition and delegation. The skill is knowing when composition is the better structure, and not only reciting the pattern.

Metaprogramming trades compile-time safety for flexibility. Sessions 7 to 9 cover inner and nested classes, custom annotations (target and retention policies) and reflection. Reflection can create instances, invoke methods and set fields, but errors show up at runtime.

Functional style needs a different mental model. Sessions 10 and 11 cover lambdas, variable capture, type inference, method references, stream pipelines and collectors (grouping, partitioning, downstream reductions). A frequent misconception is that a stream is a collection. The syllabus explicitly contrasts the two, and intermediate operations do nothing until a terminal operation runs.

Session 12 adds the Java 8 Date/Time API: instants, time zones, periods and durations. Sessions 13 and 14 are optional and cover Javadoc, Ant, Maven, and Log4j logging.

Who it suits and what to take around it

The stated prerequisite is a solid understanding of OO concepts in Java. The course is paced quickly, and it suits Java developers who want to deepen their design skills. It also suits developers from Python, C++ or C# who already think in objects and need Java depth. The optional sessions let a group tailor the coverage.

This course uses Java SE 8, which is in Extended Support only, until December 2030. It fits organizations that build, maintain or migrate systems on that version. Teams working with newer Java releases can ask about customized private training: request a training proposal.

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.

  • Refactoring a rigid class hierarchy. A team might have a deep inheritance tree for report types where each new variant means another subclass. Applying composition, delegation and the Strategy and Decorator patterns from Session 6 could replace subclassing with pluggable behavior.
  • Replacing loops with stream pipelines. A developer might maintain code that loops over order records to filter, sort and total them by category. Streams, Predicate and Function, and collectors for grouping and reducing (Session 11) express this declaratively. Method references (Session 10) can tidy the lambdas.
  • Building a small annotation-driven utility. A team might want a validation or mapping helper that reads field-level markers. A custom annotation with a runtime retention policy (Session 8) combined with reflection (Session 9) can inspect objects and set field values without hard-coded field lists.

AI coding assistants and these topics

AI coding assistants are useful for drafting JUnit tests (Session 3), converting anonymous inner classes to lambdas, suggesting method-reference refactorings and sketching Javadoc or Maven POM skeletons. They also produce a first pass of stream pipelines that you can then review.

They are less reliable where the topic depends on design intent or on subtle language rules:

  • Contracts. Generated equals() and hashCode() may be inconsistent with each other or with Comparable.
  • Generics. Suggested wildcard signatures can compile yet be wrong for the use case, and erasure limits what code can do at runtime.
  • Patterns. An assistant may add a Singleton or a Factory where composition would be simpler.
  • Versions. Output may use newer language features than Java SE 8 allows, or APIs that predate the Date/Time API.
  • Reflection and annotations. Generated code may skip access and exception handling.

To verify: compile against the Java version your project targets, write tests for the contract methods before accepting generated ones, check that stream pipelines end in a terminal operation, and review any reflective code line by line.

Frequently asked questions

What level is this course?

It is advanced and fast-paced. It assumes you already understand object-oriented concepts in Java, and it covers topics such as generics, design patterns, reflection, lambdas and streams.

Do I need prior Java experience?

You need a solid grasp of OO concepts in Java. Developers from Python, C++ or C# with limited Java exposure can also take it. Sessions 1 and 2 review Java fundamentals, inheritance and interfaces before the advanced material.

What does the course cover?

Object contracts, inheritance and interfaces, JUnit, collections and generics, creational and structural design patterns, inner classes, annotations, reflection, lambdas, streams and the Date/Time API. Build tools (Javadoc, Ant, Maven) and Log4j logging are optional sessions.

Can this be delivered privately, onsite or online?

Yes. HSG delivers private training for organizations at the client's location or live online.

Can the content be customized?

Yes. The optional sessions allow tailoring, and private training can be customized, including to the Java versions your organization uses. You can request a proposal to discuss your needs.

Training locations

Intermediate and Advanced Java 8 training across the U.S. and beyond.

We provide private Intermediate and Advanced Java 8 training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Intermediate and Advanced Java 8 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
Request Group Training

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.