查看电脑已安装的Jdk的位数

查看自己电脑已安装的Jdk的位数的方法:

public class ShowJdkBit {


 public static void main(String[] args) {


  String arch = System.getProperty("sun.arch.data.model");


  System.out.println(arch + "-bit");

 }


}

你可能感兴趣的:(java基础,jdk,java)