Which JDBC driver Type(s) can be used in either applet or servlet code?
A
Both Type 1 and Type 2
B
Both Type 1 and Type 3
C
Both Type 3 and Type 4
D
Type 4 only
Correct Answer: Both Type 3 and Type 4
In a Type 3 driver, a three-tier approach is used to accessing databases. The JDBC clients use standard network sockets to communicate with an middleware application server. In a Type 4 driver, a pure Java-based driver that communicates directly with vendor’s database through socket connection.