Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

JDBC Interview Questions and Answers

Question: How can you load the drivers?
Answer: 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:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

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:
Class.forName("jdbc.DriverXYZ");
Is it helpful? Yes No

Most helpful rated by users:

©2024 WithoutBook