1.Does the last number in version also make the difference??
No. It should not. However, I have faced issues at runtime due to minor version differences. On further investigation, it was found to be due to incomplete understanding of APIs. The developer was expecting obj.getClass().getFields()
to return the fields in the order of declaration and it was working that way in one version. In the newer update it was returning the fields in a different order. The API clearly says that "The elements in the array returned are not sorted and are not in any particular order."
Moral of the story: Always develop,test and deploy on the exact same version of Java.
2.javap -verbose ClassName gives me the minor and major version but how to
know with which update the class is
compiled with??
You cannot. The class file does not even carry that information. See the class-file format: http://en.wikipedia.org/wiki/Java_class_file
The problem that you are getting looks weird. Please post your solution if you get one.