- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Display Java Specification Version
Use the System.getProperty() method in Java to get the Java Specification Version.
It’s syntax is −
String getProperty(String key)
Above, the key is the name of the system property. Since, we want the Java Specification Version name, therefore we will add the key as −
java.specification.version
The following is an example −
Example
public class Demo { public static void main(String[] args) { System.out.print("Java Specification Version: "); System.out.println(System.getProperty("java.specification.version")); } }
Output
Java Specification Version: 1.8
- Related Articles
- How to display Java Runtime Environment (JRE) version
- Algorithm Specification-Introduction in Data Structure
- Data Over Cable Service Interface Specification (DOCSIS)
- Difference between specification and recommendation that introduced CSS
- Java Program to get Operating System name and version
- Difference between Kerberos Version 4 and Version 5
- How to find the version of Java using command line?
- Difference between Centralized Version Control and Distributed Version Control
- How to get Java and OS version, vendor details in JShell in Java 9?
- The Browning Version
- How to install the specific version of the PowerShell module version?
- Java Program to determine the name and version of the operating system
- Display a percentage in Java
- Display path separator in Java
- Display HashMap elements in Java

Advertisements