What is package: A package is used to group related classes. It is like a folder in a file directory. These are used to avoid name conflicts and to write a better maintainable code. It is divided into two categories :
a) Built-in package
b) User-defined package

Built-in package: The Java API is a library of pre-written classes, that are free to...