In Java, packages group together a set of related classes defined in a common subdirectory. Oftentimes many useful utilities are abstracted behind these classes.
Every file in a package begins with the line package <name>
. We can also import
specific classes within packages or entire packages: