Tuesday, 3 August 2021

Command to check java class version

Check version of java class by command prompt windos


set path=Path of Java C:\Program Files\Java\jdk1.8.0_291\bin

cd Path_where_class_exists


Path_where_class_exists:>  javap -verbose Your_class_Name findstr "major"


or copy the class in java/folder and run command


Version 51 :- Java 7


Version 52 :- Java 8




No comments:

Post a Comment