- Modular Programming in Java 9
- Koushik Kothagal
- 161字
- 2021-07-02 18:38:20
Traditional Java code structure
Traditionally, writing a Java application starts with creating one or more source directories. These are special directories that serve two purposes--firstly, they act as root locations of your Java source code and secondly, the contents of these directories are added to the class path. So, the steps to organize source code have typically been:
- Create one or more source folders.
- In a source folder, create package folders to mirror the package name.
- Place the .java files in the right package folders:

Many Java developers use the directory structure src/main/java for the source directory. So, for example, a class Main.java in the package com.acme.app would have the overall path src/main/java/com/acme/app/Main.java:

This is how source code in Java has typically been organized by developers for many years now. With Java 9 modules, there's a change in the way we approach structuring and writing code. Let's switch gears and examine what a module in Java 9 looks like.
- Java語言程序設計
- Java高并發核心編程(卷2):多線程、鎖、JMM、JUC、高并發設計模式
- PaaS程序設計
- Microsoft Dynamics 365 Extensions Cookbook
- C/C++算法從菜鳥到達人
- Reactive Programming With Java 9
- C++程序設計基礎教程
- 微信小程序項目開發實戰
- Mastering Backbone.js
- 零基礎學C語言(升級版)
- Tableau Dashboard Cookbook
- Node.js 6.x Blueprints
- Learning jqPlot
- JavaScript程序設計基礎教程(慕課版)
- Visual Basic 開發從入門到精通