Explain package and import keyword of Java language

 package keyword              package  <pkg1>.<pkg2>.<pkg3>—–<pkgN>;             package is  standard inbuilt keyword of Java language. It is used to assign package (folder path) to any java class. In the above syntax pkg1, pkg2, pkg3—– pkgN are package names.             Whenever any…