Friday, February 7, 2014

How to find a version of java class



This blog explains about how to find the version of the java class file, Java class version is based on JDK version where this is compiled. Each JDK will have different version. For example JDK1.5 has version as 49, JDK1.6 has version as 50


Use javap -verbose <class Name> as shown in below screenshot. major version indicates the version of java class.