Advanced java programming


Intermediate/Advanced Java Programing 11+   5 Days

Course Description – Intermediate/Advanced Java Programming

This is a modern, 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. This review also includes an overview of newer language features such as the Date/Time API (Java 8+), type inference with var, and switch expressions.

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 includes in-depth coverage of functional programming with lambdas and streams, as well as the Java Platform Module System (JPMS). Java modules presents a fundamental shift in how applications are organized, and interconnected to the libraries they use. Migration strategies are also covered, including a step-by-step case study.

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 the advanced Java topics described above. 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.

Unit testing is stressed throughout the course, with most labs implemented as JUnit tests.

The course is very hands-on, including numerous code examples and programming labs that reinforce the concepts presented, so that attendees can immediately employ what they’ve learned in their current projects.

It is designed to be flexible, and can be customized to fit your needs. Be prepared to work hard and learn a great deal!

What You Will Learn

  • Solidify Java foundational knowledge, including the important contracts of class Object
  • Understand the uses and consequences of inheritance and composition, and reinforce the role of interfaces
  • Reinforce fundamental OO principles such as cohesion, coupling, and polymorphism
  • Use the JUnit testing framework and become fluent in writing assertions to verify correct program behavior
  • Familiarity with UML modeling in class diagrams and sequence diagrams
  • Use advanced techniques for object creation, including factories and singletons
  • Use established design patterns for object composition, including Strategy, Decorator, and Facade
  • Write and use generic classes and methods
  • Learn the use cases for inner classes and refactor existing code to use them when appropriate
  • Create and use custom annotations
  • Be familiar with reflection and how to use it
  • Understand the role of functional interfaces
  • Understand lambda expressions and method references, and use them to pass behavior (methods)
  • Use the Stream API to perform complex processing of collections and other input sources
  • Create and use Java modules, understanding module descriptors, modular JARs, exports and dependencies, and the modulepath
  • Understand the structure and behavior of the modular JDK, and how it supports modular applications as well as legacy classpath-based code
  • Migrate classpath-based applications to Java 11, understanding the stages of migration and options available


Working knowledge of Java programming, including use of inheritance, interfaces, and exceptions.


  • – Preface: Java State of the Union
    • Java Release Cycle
    • New Java Versions
  • – 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
    • Date and Time API
    • New Language Features
  • – 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 (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
      • 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
    • Stream Processing
      • Filtering, Sorting, Mapping
      • Terminal Operations
    • Collectors
      • Concepts
      • Partitioning and Grouping
  • – Session 12: Introduction to Modules
    • Motivation and Overview
    • Types of Modules
    • Modular JDK
    • Our Approach
  • – Session 13: Working with Modules
    • Defining and Using Modules
    • Services
    • Compatibility and Migration
    • Conclusion

Supported Software Enviornments

  • Standard: Java 11 and Eclipse IDE
  • Other Available IDEs IntelliJ IDEA, IBM RAD (upon request)

(Non-standard software may require additional wait and incur additional charges.)

System Requirements

Important Note: Student lab files are required on each computer used for the course. The links for these are not in this lab setup, and you should receive them separately.

Other notes:

  • It’s a good idea to keep downloaded software install files on the machines during the class in case of problems that require a re-install.
  • Cloning a setup is generally not a problem. If it is, we’ll mention it in the software section (for example, much of the IBM/RAD-WAS software can be problematic in this regard).

Hardware and classroom setup.

Each student and the instructor shall have a workstation that fulfills the listed requirements.

  • Required: Intel-compatible processor (with reasonably recent hardware).
  • Memory: 8GB min recommended
  • Disk Space: Free disk space for software installs (generally minimum 2GB)
  • Operating SystemWindows OS (Any modern version – Windows 7, 10, etc. – labs have not been tested on Windows 8 variants)
  • Recommended: Internet access
  • Recommended: Class machines networked together – allows students to access a shared network directory.
  • Required: Zip utility. A good free one is 7-zip
  • Required: Adobe Acrobat Reader

Lab Files: Each student and instructor must have lab files installed (links to these files are generally sent separately via e-mail).

  • Extract the lab files to a location conveniently accessible to the student (e.g. C:\ )
  • If using folder other than C:\, make sure that students know where they are.

Other instructor requirements for the classroom

  • Projector or large screen TV capable of 1280×800 or higher resolution. Instructor must be able to use this to project slides.
  • Whiteboard (preferred) or flip charts with markers.

Install Java Development Kit – JDK 11 (11.0.8)

  • Note that any JDK 11 version should work fine. Other close later Java versions (e.g. Java 12 or 13) should be fine also, but have not been tested.
  • From download the installer file for your OS
    • File name is something like: jdk-11.0.8_windows-x64_bin.exe
  • Run the installer and take all defaults. 
  • Create or modify environment variables as appropriate for your OS. This will add an environment variable JAVA_HOME, and modify your path to include the jdk bin folder
    • JAVA_HOME:
      • Right click My Computer and choose Properties > click the Advanced tab > click the Environment Variables button
      • In the bottom half of the dialog, click New to add a new System variable
      • Variable nameJAVA_HOME (this is case-sensitive)
      • Variable valueC:\Program Files\Java\jdk-11.0.8 (or adjust to the actual path where you installed the JDK – please double-check this path – probably best to copy and paste it
      • Click OK
    • Path:
      • Find this existing entry in the bottom half of the Environment Variables button, and click Edit
      • Click in the Variable value field and move your cursor all the way to the left (pressing Home on your keyboard should do this quickly for you)
      • Check whether the value below is already present, or add it at the beginning if necessary (make sure you get all of this, including the trailing semicolon, with no spaces):%JAVA_HOME%\bin;


    • Click OK repeatedly (likely in 3 different dialogs) until all the dialogs close.
  • Open a terminal prompt, type the below, and press Enterjavac -version


  • You should get a message that tells you the version. If the command is not found, you did something wrong.
  • Close the terminal prompt. You’re done installing Java

Install Eclipse 2020-03 (or later) for Enterprise Java Developers (Windows OS – 64 bit only)

    • Later or earlier editions should work fine. NOTE: You need at lease the 2018-12 edition for full Java 11 support, so don’t use an earlier one if using Java 11.
    • Download:
      • Try a direct link first:

    • If you have problems with a direct link, follow the instructions below
      • Go to
      • Look for the heading “Eclipse IDE 2020-03 R Packages” and the download areas below it. This is below the top banner on the page. Do NOT use the Download button in the banner.
      • Find the section for “Eclipse IDE for Enterprise Java Developers
      • Click the link next to Windows 64 bit
      • For Windows (64 bit only) the file will have a name like
  • Extract:
    • Unzip the file – Can extract to C:\, or other location convenient to student (as long as they know it, and can access it)
  • Test
    • Execute the program (double click on the eclipse.exe executable, or a shortcut for it)
    • Accept the default workspace, and let it load
    • Quit Eclipse
  • That’s it. You’re done installing Eclipse
java training
Java training

Other courses to explore:

Design Patterns in Java – Onsite, Custom, Lowest Price

Java Development for Secure Systems – Onsite, Custom

Introduction to Java Testing – Onsite, Custom, Lowest Price

Print Friendly, PDF & Email