Give two advantages of creating packages in java program.
Advantages of Packages
· Anyone can easily determine which files are related.
· Name space collision is minimized.
· One can allow types in one package to have unrestricted access to one another, still restricting the access for the types outside the package.