Get Package
You can obtain information about the package from a Class object like
this:-
From the Package object you have access to information about the package like its name.
You can also access information specified for this package in the Manifest file of the JAR file this package is located in on the classpath.
For instance, you can specify package version numbers in the Manifest file.
Class aClass = ... //obtain Class object.
Package package = aClass.getPackage();
Package package = aClass.getPackage();
From the Package object you have access to information about the package like its name.
You can also access information specified for this package in the Manifest file of the JAR file this package is located in on the classpath.
For instance, you can specify package version numbers in the Manifest file.


