Chapter 8
Working with Packages and the Java Module System
IN THIS CHAPTER
Creating packages for your classes
Archiving your packages in JAR files
Documenting your classes with Javadoc
Using the Java Module System
This chapter shows you what to do with the classes you create. Specifically, I show you how to organize classes into neat packages. Packages enable you to keep your classes separate from classes in the Java API and allow you to reuse your classes in other applications, and even let you distribute your classes to others, assuming other people might be interested in your classes. If that’s the case, you probably won’t want to send those people all your separate class files. Instead, bundle them into a single file called a JAR file. That’s covered in this chapter too.
I then show you how to use a feature called Javadoc that lets you add documentation comments to your classes. With Javadoc, you can build professional-looking documentation pages automatically. Your friends will think you’re a real Java guru when you post your Javadoc pages to your website.
Finally, I show you ...
Get Java All-in-One For Dummies, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.