1.

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 onlyThis question was addressed to me in examination.My question is based upon Servlets and JSP in division Database Programming Techniques of Database Management

Answer»

Right answer is (c) Both Type 3 and Type 4

Best 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.



Discussion

No Comment Found

Related InterviewSolutions