Which one is the better way for registring a Driver in JDBC:
Under what circumstance we use what
posted 5 years ago
The disadvantage of the second approach is that the driver name has to be known, and the driver library has to be available, at compile time. It's quite common for the driver to be specified in a configuration file for better flexibility, which would be ruled out by the second approach.