When the message "No Suitable Driver" occurs?

Options
- When the driver is not registered by Class.forname() method
- When the user name, password and the database does not match
- When the JDBC database URL passed is not constructed properly
- When the type 4 driver is used


CORRECT ANSWER : When the JDBC database URL passed is not constructed properly

Discussion Board
No suitable driver

"No suitable driver" is an error which occurs during a call to the DriverManager.getConnection method and it is also a cause that can occur while failing to load the appropriate JDBC drivers before calling the getConnection method, or it can be specifying an invalid JDBC URL (which isn't recognized by JDBC driver). While using JDBC-ODBC Bridge also this kind of error can occur. This is the cause when one or more shared libraries needed by the Bridge cannot be loaded.

Rohit Sharma 09-21-2014 07:04 AM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement