Simple Program To Find Java Vendor Information
import java.util.Properties;
public class jvm_version
{
public static void main(String args[])
{
Properties prop = System.getProperties();
System.out.println ("JVM Vendor : " + prop.getProperty("java.vendor") );
System.out.println ("JVM Version: " + prop.getProperty("java.version") );
}
}
Note: class jvm_version is public, should be declared in a file named jvm_version.java
No comments:
Post a Comment