public static String describePlatform ( ) { String desc = "Java " + SPECIFICATION_VERSION + " (" + "VM vendor name=\"" + VENDOR + "\", " + "VM vendor version=" + VENDOR_VERSION + ", " + "JVM name=\"" + JVM_NAME + "\", " + "JVM version=" + VM_VERSION + ", " + "JVM info=" + VM_INFO ; // Add the API level if it's an Android platform if ( ANDROID_VERSION != 0 ) { desc += ", API level=" + ANDROID_VERSION ; } desc += ")" ; return desc ; }
Describes the platform . Outputs Java version and vendor .