Java examples for Java Virtual Machine:Utility
Get Java specification version using System
public class Main { public static void main(String[] args) { // www . j a v a 2 s . c om String strJavaVersion = System.getProperty("java.specification.version"); System.out.println("Java Specification is : " + strJavaVersion); } }