A package is somewhat like a folder, where a set of common files are kept together. All classes in a package are kept together, as described at
http://docs.oracle.com/javase/tutorial/java/package/index.html[
^]. When you build a Java program that has a
package
statement, then the compiled class is expected to be stored in a subdirectory with the same name. You then call
java
to execute it from its parent with a command line of the form:
java packagename/classname
You can also use the
-classpath
option to tell Java where your classes are stored.