- 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.
- Visual Studio 2012 Cookbook
- Java入門經典(第6版)
- Visual FoxPro程序設計教程
- JavaScript Unlocked
- Architecting the Industrial Internet
- Silverlight魔幻銀燈
- MySQL數據庫管理與開發(慕課版)
- Kinect for Windows SDK Programming Guide
- Learning Three.js:The JavaScript 3D Library for WebGL
- Hands-On Full Stack Development with Go
- Web Development with MongoDB and Node(Third Edition)
- The Professional ScrumMaster’s Handbook
- Hands-On Full Stack Development with Spring Boot 2.0 and React
- 軟件項目管理實用教程
- Python網絡爬蟲技術與應用