On compile or run, we usually have a lot of class/jar dependencies, and the database driver's jar is just one of them. So, does
Class.forName(X)
have to scan all these .class/.jar file names to locate proper driver class named X? If not, does Class.forName
has any rule/algorithm to find particular class?