public class VersionDetector
extends java.lang.Object
It can be used like this:
String servletVersion = VersionDetector.getServletVersion(); String javaVersion = VersionDetector.getJavaVersion();
Constructor and Description |
---|
VersionDetector() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getJavaVersion()
Determines the JDK version number.
|
static java.lang.String |
getServletVersion()
Determines the Servlet API version number.
|
public static java.lang.String getServletVersion()
public static java.lang.String getJavaVersion()