If i create a custom class loader for say 3(A,B,C) classes of my Java app and redirect all other loading to default bootstrap class loader. Then according to JVM spec : "A reference to a class is consulted from current class loader and loaded (if necessary ) accordingly"
Now if i try to create object of class D(whose Class-Loader reference is bootstrap in "Class" class) from class A(whose Class-Loader reference is custom loader) , then custom-loader does not have any way to find path of D.class file (say i pick A,B,C from internet / some other place in which case , CLASSPATH is different in custom loader).
So how does this class finding problem would be resolved by JVM?