statement is used to identify the package
which a class belongs.
This statement must be placed at the beginning of the source code file for the class. Following is an example of a
Placed at the beginning of a source code file for a class, this statement indicates that the class belongs to the
If you wanted to include classes named
slinky in the
you would place the above
package statement at the top of the source code files for each class.
Click the Quiz link below to test your knowledge of packages.
Java Classes - Quiz