Class packaging: Understanding how to organize related Java components

This tutorial takes a look at how the Java programming language uses folders and packages to organize logically related classes and components.

One of the most fundamental concepts in the world of Java programming is the package. When developers have a common set of related classes and components, they are encouraged to organize those files and resources together into packages. But what exactly are packages, and how do developers create them? This tutorial, the fourth in a series, uses nothing more than Notepad, the Java 7 JDK and our previously created rock-paper-scissors application to demonstrate how to package related resources together; it shows how packages manifest themselves on the file-system; and it will help developers understand the importance of the package construct in Java.

Dig Deeper on JSRs and APIs

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.