Get Java specification version using System - Java Java Virtual Machine

Java examples for Java Virtual Machine:Utility

Description

Get Java specification version using System

Demo Code


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);
        }
}
 

Related Tutorials