PackageInfo.java Source code

Java tutorial

Introduction

Here is the source code for PackageInfo.java

Source

class PackageInfo {
    public static void main(String[] args) {
        Package p = Package.getPackage("java.lang");

        System.out.println("Name = " + p.getName());

        System.out.println("Implementation title = " + p.getImplementationTitle());

        System.out.println("Implementation vendor = " + p.getImplementationVendor());

        System.out.println("Implementation version = " + p.getImplementationVersion());

        System.out.println("Specification title = " + p.getSpecificationTitle());

        System.out.println("Specification vendor = " + p.getSpecificationVendor());

        System.out.println("Specification version = " + p.getSpecificationVersion());
    }
}