×

Java Programs

Java Practice

Java program to print all Java properties

This Java program will print all java properties like Java version, VM version, Java VM vendor, VM name, Java VM Specifications etc.

package com.includehelp;

/**
 * program to print all java properties
 * @author includehelp
 */
public class KnowJavaProperties {
    public static void main(String[] args) {
        System.out.println("Java Version     : "+System.getProperty("java.version"));
        System.out.println("Java VM Version  : "+System.getProperty("java.vm.version"));
        System.out.println("Java VM Vendor   : "+System.getProperty("java.vm.vendor"));
        System.out.println("Java VM Name     : "+System.getProperty("java.vm.name"));
        System.out.println("Java VM specification Version : "+System.getProperty("java.vm.specification.version"));
        System.out.println("Java VM specification Vendor  : "+System.getProperty("java.vm.specification.vendor"));
        System.out.println("Java VM specification Name    : "+System.getProperty("java.vm.specification.name"));
        System.out.println("Java Runtime specification Version : "+System.getProperty("java.specification.version"));
        System.out.println("Java Runtime specification Vendor  : "+System.getProperty("java.specification.vendor"));
        System.out.println("Java Runtime specification Name    : "+System.getProperty("java.specification.name"));
        
    }
}

Output

Java Version     : 1.8.0_66
Java VM Version  : 25.66-b18
Java VM Vendor   : Oracle Corporation
Java VM Name     : Java HotSpot(TM) 64-Bit Server VM
Java VM specification Version : 1.8
Java VM specification Vendor  : Oracle Corporation
Java VM specification Name    : Java Virtual Machine Specification
Java Runtime specification Version : 1.8
Java Runtime specification Vendor  : Oracle Corporation
Java Runtime specification Name    : Java Platform API Specification

Java Most Popular & Searched Programs »





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.