Class loading
I was experimenting something wiht class loading so found this scenario.
I have created an interface and implementation and made a jar file and kept it in java ext directory, so its loaded by extension class loader and everything works fine.
Now i created another interface in my java application with same class name but different method names. When i use this interface in any of my other classes it gives compilation error when i try to access the method of interface placed in ext directory.
But at runtime it tries to invoke method only existing in interface of ext directory
Why is this anamoly?

