- Modular Programming in Java 9
- Koushik Kothagal
- 196字
- 2021-07-02 18:38:18
Creating Your First Java Module
In the previous chapter, we took a detailed look at the problems associated with modularizing Java code pre-Java 9, as well as the new module construct in Java 9 and Project Jigsaw. Before we examine how Java modularity solves these problems, you'll need to first understand what a Java module looks like. In this chapter, you'll create your first Java 9 module and learn what it takes to build and execute code in a Java module. Here are the top-level topics you'll be learning in this chapter:
- Setting up the JDK with Java 9
- Creating a new Java 9 module
- Defining a module (using module-info.java)
- Compiling and executing a module
- Handling possible errors
You'll be building a sample Java 9 application throughout this book as you learn the different concepts related to modularity. The application you'll build is an address book viewer application that displays some contacts sorted by last name. We'll start simple and enhance this application as we go. When you are done with this chapter, you'll have built your first Java 9 module and learned how to compile and execute it. Let's start by first installing the JDK.
- 復雜軟件設計之道:領域驅動設計全面解析與實戰
- Programming ArcGIS 10.1 with Python Cookbook
- 程序員考試案例梳理、真題透解與強化訓練
- Python金融數據分析
- Blender 3D Incredible Machines
- MATLAB實用教程
- 差分進化算法及其高維多目標優化應用
- Rust Essentials(Second Edition)
- Python深度學習:模型、方法與實現
- ArcGIS for Desktop Cookbook
- 軟件體系結構
- Java核心編程
- Android應用開發攻略
- Building Web and Mobile ArcGIS Server Applications with JavaScript(Second Edition)
- Learning Unity Physics