|
||
|
Lesson 4
Objective
|
Packaging Java classes
Organize Java classes into packages. |
|
|
The package statement is used to identify the package to 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 package statement: package toys;
Even though the package statement must be placed at the beginning of a source file, it
is okay to have comments appearing before it in the code.
Java Classes - Quiz
Click the Quiz link below to test your knowledge of packages.
Java Classes - Quiz |
||
|
|
||
