What is package and what is the advantage?

What is package and what is the advantage? It is an encapsulation mechanism to group related classes and interface into a single unit, which is nothing but packages. Packages are named in reverse order of domain names, i.e., com.java4us.packageprogram.A Java package is a group of similar types of classes, interfaces, and sub-packages. . . . Read more