java.lang.Package.getSpecificationVersion()


java.lang.Package.getSpecificationVersion()

package com.codingdict;



public class PackageDemo {



   public static void main(String[] args) {



      // get the java lang package

      Package pack = Package.getPackage("java.lang");



      // print the specification version for this package

      System.out.println("" + pack.getSpecificationVersion());

   }

}