Posts

Showing posts with the label JDBC in Java Multiple Choice Questions

JDBC in Java Multiple Choice Questions

JDBC in Java Multiple Choice Questions JDBC is an API (Application Programming Interface) that helps a programmer to write a Java program to connect to a database, retrieve the data from the database, and perform various operations on the data in a Java program. As it is an important topic, the questions related to JDBC frequently asked in Java interviews and competitive exams. So, in this section, we have collected some multiple-choice questions based on JDBC that are important from the perspective of different competitive exams and interviews. 1) What are the major components of the JDBC? DriverManager, Driver, Connection, Statement, and ResultSet DriverManager, Driver, Connection, and Statement DriverManager, Statement, and ResultSet DriverManager, Connection, Statement, and ResultSet  Answer: a Explanation: DriverManager: Manages a list of database drivers. Driver: The database communications link, handling all communication with the database. Connection: Interface with all met...