Database - JDBC, Java Server Pages, and MySQL - Discussion

Discussion :: JDBC, Java Server Pages, and MySQL - General Questions (Q.No.5)


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: Option C


No answer description available for this question.

Manche Shekhar said: (Feb 16, 2012)  
Only type3 and type drivers can be used in applet or servlet code. Because these two drivers are platform independent drivers. These support runtime environment.

Rupesh Raghani said: (Mar 30, 2012)  
Both Type 3 and Type 4 driver's works on server side rather than client side. So the client of Java application need not bother about where the driver file is or which driver is installed. As these driver can work on Server side, we can make use of these drivers on either Applet application's or Servlet/JSP applications or any distributed applications also.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.