Package one.tranic.t.thread
Class Sys
java.lang.Object
one.tranic.t.thread.Sys
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic intRetrieves the current JVM version as an integer.
-
Constructor Details
-
Sys
public Sys()
-
-
Method Details
-
getCurrentJVMVersion
public static int getCurrentJVMVersion()Retrieves the current JVM version as an integer.The version is determined by parsing the system property "java.version". If parsing fails, the feature version from
Runtime.version()is used as a fallback.- Returns:
- the current JVM version as an integer.
-
getCurrentJVMClassVersion
public static int getCurrentJVMClassVersion()
-