public class JavaVersion extends Object
| Constructor and Description |
|---|
JavaVersion() |
| Modifier and Type | Method and Description |
|---|---|
static int |
getMajorVersion()
Returns the major version of the current JVM instance (e.g.
|
static int |
getMajorVersionFromString(String version)
Returns the major version from a Java version string (e.g.
|
public static int getMajorVersion()
public static int getMajorVersionFromString(String version)