Explanation:JBDB.DriverManager.getConnection() is used to get the connection to the database. 4. 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
Answer:A
Explanation:JBDB.DriverManager.getConnection() is used to get the connection to the database. 4. 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
Explanation: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. 5. What MySQL property is used to create a surrogate key in MySQL?