Java includes the import statement to bring certain classes, or entire packages, into visibility. Once imported, a class can be referred to directly, using only its name… Read more »
Introduction
1. Packages
2. Interfaces.
Packages
Packages are containers for classes that are used to keep the class name space compartmentalized.
Interfaces
Interface, can specify a set of methods that can be implemented by one or more classes. The interface, itself, does not actually define any implementation.