Packages

September 10th, 2006 Admin Posted in Packages No Comments »

Packages

Packages are containers for classes that are used to keep the class name space compartmentalized.

package pkg;( package keyword)

java uses file system directories to store packages.
If package statement is not used, the classes are put into the default package.
import pkgs; (import keyword)
Compiling Java files with package statements.(syntax)
Interpreting class files in packages. Setting the class path.
Access specifiers scope in different packages.

Package is a collection of classes & interfaces grouped together.

AddThis Social Bookmark Button