ADVERTISEMENT
ADVERTISEMENT

Java - Get Java Specification Version using System Class in Java.


IncludeHelp 19 July 2016

In this code snippet we will learn how to get Java Specification Version Name using System class in Java. Java provided System class, by using getProperty() method of System class with "java.specification.version" parameter we can access the Java Specification Version Name.

Java Code Snippet - Get Java Specification Version Name using System Class

//Java - Get Java Specification Version using System Class in Java.

public class GetJavaSpecificationVersionName{	

	public static void main(String args[]){
		  String javaSpecificationVersion="";
		  
		  javaSpecificationVersion=System.getProperty("java.specification.version");
		  System.out.println("Current Java Specification Version is: " + javaSpecificationVersion);		 
	  }
}
    
    Current Java Specification Version is: 1.8

ADVERTISEMENT



ADVERTISEMENT



Comments and Discussions


ADVERTISEMENT

ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT

Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates

© https://www.includehelp.com some rights reserved.