Tuesday 26 August 2014

Get JRE version number

Use the property "java.version" to get the JRE version number.

public class GetProperty {
    public static void main(String args[]){
        System.out.println(System.getProperty("java.version"));
    }
}

Output
1.8.0_05


                                                             Home

No comments:

Post a Comment