What do you mean with "declaring drivers"?
From the point of view of your
Java application, there is no difference between the various driver types.
The driver you are using should come with documentation that explains what the JDBC URL should look like if you want to use that driver and what the name of the driver class is.