Java View all facts Glossary Help |
syntactic unit > scoping unit > package > default package |
default package | ||||
subject | fact |
default package | has definition An unnamed package that contains class files whose source files did not contain a package statement | |
does not have a name | ||
has purpose storing temporary or small applications | ||
is a subtopic of Packages | ||
is defined by all the files in current directory | ||
is a kind of package | ||
package | can be imported | |
can be imported by using the import statement | ||
contains 0 or more classes and 0 or more interfaces | ||
defines a name space | ||
groups classes or interfaces by function | ||
is specified by a file that begins with a package statement | ||
is stored as a set of class files in a directory | ||
see also package name | ||
to create you put a class in it or put an interface in it by putting a package statement at the top of the source file in which the class or interface is defined | ||
to import you use the import statement with the asterisk wildcard character | ||
syntactic unit | has syntax rule bold = mandatory |
Next package: java.applet Up: package Previous package: javax.swing