Know by class file which version of java is used to compile it
By using the .class file you can find,from which version of java,
that .class file is generated.....
just type at command prompt like this.....
javap -verbose<.class file name without extention>