DriverManager: getDrivers()
import java.sql.Driver; import java.sql.DriverManager; public class Main { public static void main(String[] args) throws Exception { Class driverClass = Class.forName("org.hsqldb.jdbcDriver"); DriverManager.registerDriver((Driver) driverClass.newInstance()); // Print out all loaded JDBC drivers. java.util.Enumeration e = java.sql.DriverManager.getDrivers(); while (e.hasMoreElements()) { Object driverAsObject = e.nextElement(); System.out.println("JDBC Driver=" + driverAsObject); } } }