Book

Modular Programming in Java 9

The Java 9 module system is an important addition to the language that affects the way we design and organize code and libraries in Java. It provides a new way to achieve maintainable code by the encapsulation of native Java types, as well as a way to write better libraries that have clear interfaces. This book will give you step-by-step instructions to create new modules as well as migrate code from earlier versions of Java to the Java 9 module system.

Offered byPackt Logo

Difficulty Level

Intermediate

Completion Time

9h56m

Language

English

About Book

Who Is This Book For?

This book is written for Java developers who are interested in learning and understanding the techniques and best practices to build modular applications in Java. The book assumes some previous programming experience in Java 8 or earlier, familiarity with the basic Java types such as classes and interfaces, as well as experience in compiling and executing Java programs.

Book content

chapters 9h56m total length

What’s Java modularity all about?

Writing your first Java module[

Handling inter-module dependencies

Introducing the modular JDK

Using Platform APIs

Module resolution, accessibility and readability

Introducing Services

Understanding linking and using jlink

Module design patterns and strategies

Upgrading your code to Java 9

Java 9 and OSGi

Using build systems and testing Java modules

Related Resources

Access Ready-to-Use Books for Free!

Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!

No credit card required