News

To define a package, you include a package declaration at the beginning of each Java source file. This declaration specifies the package name using the package keyword followed by the package name.
This is demonstrated in the next screen snapshot. In this example, a class was declared as public with the name Person, but was saved in a file called Person2.java.
In the above example, the various version information is provided for the package dustin.examples because that (dustin/examples/) is listed after Name: .