A same class name with same package structure is residing in different jar files and both the classes are loadded by different class loader. if i want to import both the classes and use them in different scenario then how can I do this? Please let me know technique.
Eample :
ClassLoader :-TestClassLoaderFirst
package src.test.com;
class TestClass is present in A.jar
TestClass{
public void dispaly(){
System.out.println("In A.jar ")
}
}
and b.jar.
ClassLoader :-TestClassLoaderSecond
package src.test.com;
Class TestClass{
public void present(){
System.out.println("")
}