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()
Next Question

Overall Stats

Attempted 752
Correct 146
Incorrect 226
Viewed 380


ihsane KHALLOUQ - 1 week ago

ihsane KHALLOUQ from Casablanca, Morocco is saying registerDriver() method is correct answer

bikram behera
bikram behera - 1 month ago

bikram behera from Machhagan, India is saying Class.forName() is correct answer

Krishna Pranathi
Krishna Pranathi - 1 month ago

Krishna Pranathi is saying Both A and B is correct answer

Pavan Prathipati
Pavan Prathipati - 1 month ago

Pavan Prathipati is saying Both A and B is correct answer

Patel Tirth
Patel Tirth - 2 months ago

Patel Tirth is saying registerDriver() method is correct answer

Related Questions

The JDBC-ODBC bridge is

  • [A] Multithreaded
  • [B] Singlethreaded
  • [C] Both of the above
  • [D] none of the above

Which statements about JDBC are true?

  • [A] JDBC is an API to connect to relational-, object- and XML data sources
  • [B] JDBC stands for Java DataBase Connectivity
  • [C] JDBC is an API to access relational databases,
  • [D] JDBC is an API to bridge the object-relational mismatch between OO programs and relational databases

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


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.