Java Modules and New Features (Java 11+)

This course provides in-depth coverage of the important new features through Java 11 LTS. It also provides an overview of useful new features in Java 12+ that are likely to appear in Java 17 (the next LTS release).
Technical coverage starts with the new Java Platform Module System (JPMS), which presents a fundamental shift in how applications are organized, and interconnected to the libraries they use. We introduce modules from the ground up, show how to use them, describe your choices in usage, as well as caveats and pitfalls. We also provide guidelines for migration from non-modular applications.
The course covers many other new and powerful features that will be useful to developers (see the detailed outline for specifics). The course also includes several extra optional labs and guided self-study exercises in these additional areas.

This course provides in-depth coverage of the important new features through Java 11 LTS. It also provides an overview of useful new features in Java 12+ that are likely to appear in Java 17 (the next LTS release).

Technical coverage starts with the new Java Platform Module System (JPMS), which presents a fundamental shift in how applications are organized, and interconnected to the libraries they use. We introduce modules from the ground up, show how to use them, describe your choices in usage, as well as caveats and pitfalls. We also provide guidelines for migration from non-modular applications.

The course covers many other new and powerful features that will be useful to developers (see the detailed outline for specifics). The course also includes several extra optional labs and guided self-study exercises in these additional areas.

Course Objectives:

  • Understand the new Java release cycle and Long Term Support (LTS) releases
  • Be familiar with significant deprecated and removed features, and how to work around them
  • 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, how it supports modular applications as well as legacy classpath-based code, and the implications of strong encapsulation on each
  • Migrate classpath-based applications to Java 11, understanding the stages of migration and options available
  • Recognize the issues with 3rd party libraries in a migration effort, and how to work with them on the modulepath and classpath
  • Use local-variable type inference with var, including lambda parameters
  • Gain a practical working knowledge of the JShell REPL tool, including working with code snippets and variables, configuration, and using external libraries
  • Use the HTTP Client to access HTTP resources from Java, as well as understand the other options available
  • Work with various HTTP request and response types, using both synchronous and asynchronous techniques
  • Outline the new factory methods in Java Collections and understand native immutable collections
  • Describe the motivation for multi-release JAR files (MR-JARs), understand their structure, and how to create them
  • Understand the runtime behavior of MR-JARs in both legacy and modern JVMs, and principles and strategies for working with them effectively
  • Outline the principles of Reactive Programming and how it differs from traditional synchronous invocation models
  • Describe Reactive Streams and the role of the Flow API that defines the Java platform’s support for them
  • Understand the characteristics and benefits of custom runtime images
  • Use jdeps to analyze application dependencies, and create custom runtimes with jlink, for both modular and classpath-based applications
  • Explore some of the more important additional features and APIs, including new features for interfaces, the Process API, new JDK tools and command line options

Modules

Module 1: Introduction to Modules

  • Motivation and Overview
  • Types of Modules
  • Modular JDK
  • Our Approach

Module 2: Working with Java 9 Modules

  • Defining and Using Modules
  • Services
  • Compatibility and Migration
  • Conclusion

Module 3: Type Inference

  • Local-Variable Type Inference
  • Brief Overview of Lambdas
  • Local-Variable Syntax for Lambdas

Module 4: JShell

  • Introduction to JShell
  • Working with Code
  • Using Libraries (Modules, Jars, etc.)

Module 5: Http Client

  • Overview
  • API
  • Usage and Features

Modulo 6: Other New Features

  • Collection Factory Methods
  • Multi-Release JARs
  • Reactive Programming
  • Miscellaneous
  • Upcoming Features in Java 12+

Module 7: Custom Runtime Images

  • Application-Specific Runtimes
  • Benefits
  • Creating Runtime Images with jlink

Solicitar información






GRUPO TRENTIA como responsable del tratamiento tratará tus datos con la finalidad de dar respuesta a tu consulta o petición. Puedes acceder, rectificar y suprimir tus datos, así como ejercer otros derechos consultando la información adicional y detallada sobre protección de datos en nuestra Política de Privacidad.

Nos gustaría que nos prestaras tu consentimiento para: