- Modular Programming in Java 9
- Koushik Kothagal
- 199字
- 2021-07-02 18:38:18
Summary
In this chapter, we looked, at a high level, at some limitations of the traditional way of building reusable components in Java using JAR files. We saw how packaging libraries in JAR files doesn't allow developers to encapsulate inner APIs and types. There's also no way to reliably figure out whether a given application has all the necessary classes in the classpath. We learned how these problems that developers face in their code are not only present in the JDK code base itself, but are actually an issue on a much bigger scale. We understood the Java Platform Module System and the two primary goals that it set to achieve--strong encapsulation and reliable configuration. We learned about Project Jigsaw and the effort to modularize the core JDK using the same modular paradigm that's available to developers to use in their code.
At this time, you are probably wondering how the concept of modularity manifests in the Java language. What does a Java module look like?
In the next chapter, we'll answer these questions by creating our first Java 9 module, and get started on our sample application project which we'll be working on throughout this book.
- Data Visualization with D3 4.x Cookbook(Second Edition)
- Learn ECMAScript(Second Edition)
- JavaScript全程指南
- Mobile Web Performance Optimization
- 在最好的年紀學Python:小學生趣味編程
- 自己動手寫Java虛擬機
- VSTO開發入門教程
- Learn WebAssembly
- C語言實驗指導及習題解析
- 持續輕量級Java EE開發:編寫可測試的代碼
- C++20高級編程
- Kotlin Programming By Example
- 開源網絡地圖可視化:基于Leaflet的在線地圖開發
- Swift從入門到精通 (移動開發叢書)
- Python編程:從入門到實踐(第2版)