Explain the different ways to register a driver?
Answers were Sorted based on User's Feedback
Answer / bhoopesh alladi
By using the DriverManager.registerDriver() method , and
while loading of the driver and registering the driver
within a single method execution, that is
Class.forName(String DriverName)
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / chandrarekha
loading a driver can be done manually by Class.forName
(....) and DriverManager.registerDriver(...) and also
programatically by
java -Djdbc.drivers=sun.jdbc.odbc.jdbc.... <.java filename>
| Is This Answer Correct ? | 0 Yes | 1 No |
Why we use jdbc instead of odbc?
Give steps to connect to the db using jdbc?
What are the three parts of a jdbc url?
How do I stop nullpointerexception?
HI ALL, How to Overcome "OutOfMemoryException"? when I am compiling source having more than 1000 LOC throwing this exception. Can any one give correct answer to my question? thx
What does the jdbc resultset interface?
Is it possible to connect to multiple databases simultaneously?
What is jdbc servlet?
What are pros and cons of using of Type-2 and Type-4 Drivers over Type-1 driver?
I have getting problem to calling stored procedure from Mysql through JSP. Please help me.
Why isn't the java.sql.DriverManager class being found?
Under what circumstances, that all four drivers are used?