JAVA JDBC Programming Question:
Download Questions PDF

How can you load the drivers in JDBC?


Loading the driver or drivers you want to use is very simple and involves just one line of code. If, for example, you want to use the JDBC-ODBC Bridge driver, the following code will load it:
Your driver documentation will give you the class name to use. For instance, if the class name is jdbc.DriverXYZ , you would load the driver with the following line of code:


Download JDBC Interview Questions And Answers PDF

Previous QuestionNext Question
What are the steps involved in establishing a connection using JDBC in JAVA?What Class.forName will do while loading drivers of JDBC?