5 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

Overall Stats

Attempted 631
Correct 138
Incorrect 217
Viewed 276

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 4 days ago

Shamsa hafeez from Lahore, Pakistan is saying Both A and B is correct answer

sonali bhosale
sonali bhosale - 4 days ago

sonali bhosale is saying Class.forName() is correct answer

Sailaja
Sailaja - 1 week ago

Sailaja from Surat, India is saying Class.forName() is correct answer

Parth Ajagiya
Parth Ajagiya - 2 weeks ago

Parth Ajagiya is saying Class.forName() is correct answer

aaaa
aaaa - 3 weeks ago

aaaa is saying Both A and B is correct answer

Related Questions

JDBC stands for:

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

Which of the following allows non repeatable read in JDBC Connection?

  • [A] TRANSACTION_READ_UNCOMMITTED
  • [B] TRANSACTION_READ_COMMITTED
  • [C] TRANSACTION_SERIALIZABLE
  • [D] TRANSACTION_REPEATABLE_READ

How many JDBC driver types does Sun define?

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

Where is metadata stored in MySQL?

  • [A] In the MySQL database metadata
  • [B] n the MySQL database metasql
  • [C] In the MySQL database mysql
  • [D] None of the above is correct.