Explain the different ways to register a driver?

Answers were Sorted based on User's Feedback



Explain the different ways to register a driver?..

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

Explain the different ways to register a driver?..

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

Post New Answer

More JDBC Interview Questions

What are the methods which can verify the cursor particular position?

0 Answers  


any one can explain about policy file rule? when i connect database with applet then ther is no compile time error but the run time error is occureed.i.e access is denied.policy file rule is related to this problem.

0 Answers  


What is an outer join?

3 Answers   Infogain,


How to get a whole row of data at once?

2 Answers  


What are the common tasks of JDBC?

0 Answers  






MY code is: public class P1{ public static void main(String ar[]) { class.forName("java.lang.String"); } } errors i got are :New.java:5: error: <identifier> expected class.forName("java.lang.String"); ^ New.java:5: error: invalid method declaration; return type required class.forName("java.lang.String"); ^ New.java:5: error: illegal start of type class.forName("java.lang.String"); ^ New.java:7: error: reached end of file while parsing } ^ 4 errors HELP ME>......

3 Answers  


how many JDBC drivers ?name them?

6 Answers   CTS, Idea,


How do I set properties for a JDBC driver and where are the properties stored?

0 Answers  


How do I insert an image file (or other raw data) into a database?

0 Answers  


Can the JDBC-ODBC Bridge be used with applets?

2 Answers  


Explain about multiple implementations and drive manager?

0 Answers  


What is an SQL Locator?

0 Answers  


Categories