Java How to view JDK version & number of bits

Source: Internet
Author: User

Java How to view JDK versions & digits createtime--2018 April 22 18:20:18author:marydon

Method one: Implemented by DOS command

Win+r-->cmd-->

Using the Java-version implementation

Note: This method, the output of the results if with (64) is 64 bits, not 32 bits.

Using Java-d32-verison

Using Java-d64-verison

Description

  Below these 2 kinds of realization way, jdk1.7 and above version only then support Oh!

Effect Show:

Mode two: Run Java code implementation

Write a Java class

 Public class test{    publicstaticvoid  main (string[] args) {    // JDK version number    String arch = system.getproperty ("Sun.arch.data.model");    System.out.println (arch);}

Related recommendations:

Similar articles

Java How to view JDK version & number of bits

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.