How to create package and import package in java

Share this on :

Packages are used to organize all classes and interfaces.
They are also used to control the visibility access.
• To create package:
package packagename;
• To import package:
Import packagename.*.;

Share this on :