Get implementation title, vendor and version

String getImplementationTitle()
Return the title of this package.
String getImplementationVendor()
Returns the name of the organization, vendor.
String getImplementationVersion()
Return the version.

public class Main {
  public static void main(String[] args) {
    Package p = Package.getPackage("javax.swing");

    System.out.println(p.getImplementationTitle());
    System.out.println(p.getImplementationVendor());
    System.out.println(p.getImplementationVersion());
  }
}

The output:


Java Runtime Environment
Sun Microsystems, Inc.
1.6.0_12
Home 
  Java Book 
    Reflection  

Package:
  1. Package Reflection
  2. Get package for a name
  3. Get all packages
  4. Get the annotations
  5. Get implementation title, vendor and version
  6. Get the package name
  7. Get the specification title, vendor and version
  8. Get the string representation of the Package