日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程语言 > java >内容正文

java

Kotlin程序用于打印JVM版本的Kotlin(打印Java属性)

發布時間:2025/3/11 java 14 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Kotlin程序用于打印JVM版本的Kotlin(打印Java属性) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

Here, we will create a Kotlin program to print Kotlin, JVM version (printing Java properties). As Kotlin can be seen as an upgrade of Java, so we will get all versions of java (JVM) using Kotlin also.

在這里,我們將創建一個Kotlin程序以打印JVM版本的Kotlin(打印Java屬性) 。 由于Kotlin可以看作是Java的升級,因此我們也將使用Kotlin獲得所有版本的Java(JVM)。

在Kotlin中打印Java系統屬性的程序 (Program to print Java System properties in Kotlin)

package com.includehelp.basic// Main Function Entry Point of Program fun main(args: Array<String>) {println("Kotlin Version : ${KotlinVersion.CURRENT} ")println("Java Version : ${ System.getProperty("java.version") } ")println("Java VM Version : ${ System.getProperty("java.vm.version") } ")println("Java VM Vendor : ${ System.getProperty("java.vm.vendor") } ")println("Java VM Name : ${ System.getProperty("java.vm.name") } ")println("Java VM specification Version : ${ System.getProperty("java.vm.specification.version") }" )println("Java VM specification Vendor : ${ System.getProperty("java.vm.specification.vendor") }" )println("Java VM specification Name : ${ System.getProperty("java.vm.specification.name") }" )println("Java Runtime specification Version : ${ System.getProperty("java.specification.version") }" )println("Java Runtime specification Vendor : ${ System.getProperty("java.specification.vendor") }" )println("Java Runtime specification Name : ${ System.getProperty("java.specification.name") }" ) }

Output

輸出量

Kotlin Version : 1.3.71 Java Version : 1.8.0_66 Java VM Version : 25.66-b18 Java VM Vendor : Oracle Corporation Java VM Name : Java HotSpot(TM) 64-Bit Server VM Java VM specification Version : 1.8 Java VM specification Vendor : Oracle Corporation Java VM specification Name : Java Virtual Machine Specification Java Runtime specification Version : 1.8 Java Runtime specification Vendor : Oracle Corporation Java Runtime specification Name : Java Platform API Specification

翻譯自: https://www.includehelp.com/kotlin/print-kotlin-jvm-version-printing-java-properties.aspx

創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎

總結

以上是生活随笔為你收集整理的Kotlin程序用于打印JVM版本的Kotlin(打印Java属性)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。