5 years ago in JDBC


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 & Explanation
Answer: Option C

[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
Loading...
Next Question

Overall Stats

Attempted 572
Correct 187
Incorrect 111
Viewed 274

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 4 days ago

Shamsa hafeez from Lahore, Pakistan is saying Both Type 3 and Type 4 is correct answer

Sailaja
Sailaja - 1 week ago

Sailaja from Surat, India is saying Both Type 1 and Type 2 is correct answer

Sagar Gawari
Sagar Gawari - 4 weeks ago

Sagar Gawari from Pune, India is saying Both Type 3 and Type 4 is correct answer

komal badhe
komal badhe - 1 month ago

komal badhe from Pune, India is saying Both Type 3 and Type 4 is correct answer

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying Both Type 1 and Type 2 is correct answer

Related Questions

How many JDBC driver types does Sun define?

  • [A] one
  • [B] two
  • [C] three
  • [D] four

JDBC stands for:

  • [A] Java Database Connectivity
  • [B] Java Database Components
  • [C] Java Database Control
  • [D] None of the above is correct.

What happens if you call the method close() on a ResultSet object?

  • [A] the method close() does not exist for a ResultSet. Only Connections can be closed.
  • [B] the database and JDBC resources are released
  • [C] you will get a SQLException, because only Statement objects can close ResultSets
  • [D] the ResultSet, together with the Statement which created it and the Connection from which the Statement was retrieved, will be closed and release all database and JDBC resources

Which packages contain the JDBC classes?

  • [A] java.jdbc and javax.jdbc
  • [B] java.jdbc and java.jdbc.sql
  • [C] java.sql and javax.sql
  • [D] java.rdb and javax.rdb

What happens if you call deleteRow() on a ResultSet object?

  • [A] The row you are positioned on is deleted from the ResultSet, but not from the database.
  • [B] The row you are positioned on is deleted from the ResultSet and from the database
  • [C] The result depends on whether the property synchronizeWithDataSource is set to true or false
  • [D] You will get a compile error: the method does not exist because you can not delete rows from a ResultSet