1.jdk的位数:
String jdkBit = System.getProperty("sun.arch.data.model");
System.out.println(jdkBit);
2.系统位数, 如下语句打印: x86
System.out.println(System.getProperty("os.arch"));
时间: 2024-12-28 12:54:12
1.jdk的位数:
String jdkBit = System.getProperty("sun.arch.data.model");
System.out.println(jdkBit);
2.系统位数, 如下语句打印: x86
System.out.println(System.getProperty("os.arch"));