public class JVMs
extends Object
Utilities of Java Virtual Machine.
- Author:
- tomyeh
-
Method Summary
static final int
Returns the major version.
static final int
Returns the minor version.
static final boolean
Returns whether JVM is 5.0 or above.
static final boolean
Returns whether JVM is 6.0 or above.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
isJava5
public static final boolean isJava5()
Returns whether JVM is 5.0 or above.
Note: if isJava5() returns true, then isJava6()
must return true.
-
isJava6
public static final boolean isJava6()
Returns whether JVM is 6.0 or above.
-
getMajorVersion
public static final int getMajorVersion()
Returns the major version.
-
getMinorVersion
public static final int getMinorVersion()
Returns the minor version.
Copyright © 2026 Potix Corporation. All rights reserved.