Package in java acts as container for the classes and which is used to oraganized java classes as per it's functionality. Java packages can be stored in compressed files called JAR files.
Package are used in Java, in-order to avoid name conflicts and to control access of class, interface and enumeration etc. This plays really an important role specifically when we are working with big projects to organize classes into meaningful packages/directory structure.
Project Package Structure:-
Java Package Example:-
Importing package in Java private access specifier in Java default access specifier in Java