6 years ago in JDBC

Which of the following methods are needed for loading a database driver in JDBC?
a. registerDriver() method
b. Class.forName()
c. Both A and B//
d. getConnection()

[A] registerDriver() method
[B] Class.forName()
[C] Both A and B
[D] getConnection()
Loading...
Next Question

Create your Digital Resume For FREE on your name's sub domain "yourname.wcard.io". Register Here!


Overall Stats

Attempted 804
Correct 150
Incorrect 228
Viewed 426

Answers

Guest
Guest
HARSH BHUSHAN
HARSH BHUSHAN - 1 month ago

HARSH BHUSHAN is saying Both A and B is correct answer

Syed Bisma
Syed Bisma - 1 month ago

Syed Bisma is saying Both A and B is correct answer

Nikhil Kumar Bharadwaj
Nikhil Kumar Bharadwaj - 1 month ago

Nikhil Kumar Bharadwaj is saying Both A and B is correct answer

parneet tj
parneet tj - 1 month ago

parneet tj is saying Both A and B is correct answer

pawan pant
pawan pant - 3 months ago

pawan pant from New Delhi, India is saying registerDriver() method is correct answer

Related Questions

Which type of Statement can execute parameterized queries?

  • [A] PreparedStatement
  • [B] ParameterizedStatement
  • [C] ParameterizedStatement and CallableStatement
  • [D] All kinds of Statements

How can you retrieve information from a ResultSet?

  • [A] By invoking the method get(..., String type) on the ResultSet, where type is the database type
  • [B] By invoking the method get(..., Type type) on the ResultSet, where Type is an object which represents a database type
  • [C] By invoking the method getValue(...), and cast the result to the desired Java type.
  • [D] By invoking the special getter methods on the ResultSet: getString(...), getBoolean (...), getClob(...)

How many JDBC driver types does Sun define?

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