public class Main {
public static void main(String[] a) {
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());
}
}
/*Name = java.lang
Implementation title = Java Runtime Environment
Implementation vendor = Sun Microsystems, Inc.
Implementation version = 1.6.0_02
*/
|