1 Answers
What is JDBC and its key components - Interview Question
JDBC stands for Java Database Connectivity, which is a Java API that allows Java programs to interact with databases. JDBC provides a standard interface for connecting to various databases, executing SQL queries, and handling query results.
Key Components of JDBC:
- Driver Manager: Responsible for managing the different database drivers.
- Driver: A specific implementation of the JDBC driver required to connect to a particular type of database.
- Connection: Represents a connection to a database, allowing the execution of SQL statements.
- Statement: Used to execute SQL queries and update statements.
- ResultSet: Represents the result set of a database query, allowing for navigation and retrieval of query results.
- SQLException: Exception class for handling database-related errors.
Understanding the key components of JDBC is essential for any Java developer looking to work with databases in their applications.
Please login or Register to submit your answer