Summary

  1. Package is a mechanism used for partitioning the class name space into more manageable chunks.

 

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

 

  1. To create a package, package command should be included as the first statement is a Java source file. i.e: package pkg ;

 

  1. The import statement is used to bring the packages into visibility i.e import pkg ;

 

  1. Interfaces are similar to classes, but lack instance variables.

 

  1. The methods in interfaces are declared without any body.

 

  1. Interfaces are designed to support dynamic method resolution at run time.

JAVA Packages and Interfaces