- 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.
- Getting Started with Citrix XenApp? 7.6
- Python科學(xué)計(jì)算(第2版)
- Ext JS Data-driven Application Design
- 跟小海龜學(xué)Python
- DevOps入門與實(shí)踐
- PHP 編程從入門到實(shí)踐
- 零基礎(chǔ)學(xué)MQL:基于EA的自動化交易編程
- 可解釋機(jī)器學(xué)習(xí):模型、方法與實(shí)踐
- bbPress Complete
- Python編程從0到1(視頻教學(xué)版)
- Android系統(tǒng)原理及開發(fā)要點(diǎn)詳解
- 執(zhí)劍而舞:用代碼創(chuàng)作藝術(shù)
- Web前端應(yīng)用開發(fā)技術(shù)
- Web性能實(shí)戰(zhàn)
- 智能手機(jī)故障檢測與維修從入門到精通