ADVERTISEMENT
ADVERTISEMENT

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


IncludeHelp 19 July 2016

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

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

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

public class GetJavaRuntimeVersionName{	

	public static void main(String args[]){
		  String javaRuntimeVersion="";
		  
		  javaRuntimeVersion=System.getProperty("java.runtime.version");
		  System.out.println("Current Java Runtime Version is: " + javaRuntimeVersion);		 
	  }
}
    
    Current Java Runtime Version is: 1.8.0_66-b18

ADVERTISEMENT




ADVERTISEMENT



Comments and Discussions!

ADVERTISEMENT

ADVERTISEMENT

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.