1Package is a mechanism to group related classes ,interfaces and enums
2in to a single module.
3Package can be declared using the following statement :
4Syntax : package <package-name>
5Coding Convention : package name should be declared in small letters.
6package statement defines the namespace.
7The main use of package is
81) To resolve naming conflicts
92) For visibility control : We can define classes and interfaces that are
10not accessible outside the class
1// import <package> -> Imports the whole package
2// import <package>.<class> -> Imports a certain class
3import java.util.Scanner;