jdbc drivers?

Answer Posted / devnaga

Type 1: JDBC-ODBC Bridge
Type 2: Native API partly Java Driver
Type 3: Network protocol Driver
Type 4: JDBC Net pure Java Driver

Type 1 Drivers

Bridge drivers such as the jdbc-odbc bridge. They rely on an
intermediary such as ODBC to transfer the SQL calls to the
database and also often rely on native code. It is not a
serious solution for an application
Type 2 Drivers

Use the existing database API to communicate with the
database on the client. Faster than Type 1, but need native
code and require additional permissions to work in an
applet. Client machine requires software to run.
Type 3 Drivers

JDBC-Net pure Java driver. It translates JDBC calls to a
DBMS-independent network protocol, which is then translated
to a DBMS protocol by a server. Flexible. Pure Java and no
native code.
Type 4 Drivers

Native-protocol pure Java driver. It converts JDBC calls
directly into the network protocol used by DBMSs. This
allows a direct call from the client machine to the DBMS
server. It doesn't need any special native code on the
client machine.
Recommended by Sun's tutorial, driver type 1 and 2 are
interim solutions where direct pure Java drivers are not yet
available. Driver type 3 and 4 are the preferred way to
access databases using the JDBC API, because they offer all
the advantages of Java technology, including automatic
installation. For more info, visit Sun JDBC page

http://faisalmb.50webs.com/kbinterviewjdbc.html

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you remove duplicates from an array in java?

522


How objects are stored in java?

540


Explain importance of finally block in java?

572


What is the benefit of abstract class?

507


What are the methods of object class ?

554






What is the importance of main method in Java?

563


Can a class have multiple constructors?

528


What is sortedset in java?

562


What is locale in java?

567


how to create multithreaded program? : Java thread

495


What are void pointers?

702


What are the kinds of polymorphism?

602


How is hashset defined in java?

513


What is a get method?

523


How do I get 64 bit java?

514