Machine-translated by Google. Questions are authored in English.
Top

JDBC, Java Server Pages, and MySQL Questions and Answers

41.

Which JDBC driver Type(s) can be used in either applet or servlet code?

Answer: C

Correct answer: Both Type 3 and Type 4

Applets and servlets both need a driver that can work over a network without native code installed on the machine. Type 3 speaks to a middleware server and Type 4 speaks the DBMS protocol directly, and both are pure Java. Types 1 and 2 depend on ODBC or a native client library being present locally, which an applet cannot assume.

Please log in or register to report this question.

42.

With JSP, the coding is done in Java and only in Java.

Answer: A

Correct answer: True

JSP supports Java and no other language, so every scriptlet, expression and declaration on the page is Java. This is a genuine difference from ASP, which accepts VBScript and JScript, and it is why the resemblance between the two technologies is confined to their appearance on the page.

Please log in or register to report this question.

Loading…

Other Subjects

Tags: JDBC, Java Server Pages, and MySQL Questions and Answers || JDBC, Java Server Pages, and MySQL MCQ Questions and Answers || JDBC, Java Server Pages, and MySQL GK Questions and Answers || JDBC, Java Server Pages, and MySQL GK MCQ Questions || JDBC, Java Server Pages, and MySQL Multiple Choice Questions and Answers || JDBC, Java Server Pages, and MySQL GK || GK on JDBC, Java Server Pages, and MySQL || Database Questions and Answers || Database MCQ Questions and Answers || Database GK Questions and Answers || GK on Database