A JDBC ________ provides the necessary methods to interact with the database.
- Connection
- Driver
- ResultSet
- Statement
In JDBC, a Connection is used to establish a connection to a database. It provides the necessary methods to interact with the database, such as executing SQL queries and managing transactions. A JDBC Driver is responsible for establishing the connection, but the Connection object is what allows you to interact with the database.
Loading...
Related Quiz
- Imagine developing a JavaFX application where UI responsiveness is critical. How might you ensure that long-running tasks (like database operations) do not freeze the UI?
- Using ________, we can perform cleanup operations when the stream is closed.
- What is the main disadvantage of the Bubble Sort algorithm in terms of performance?
- The process of defining a new exception by extending an existing exception class is known as ________.
- The ________ statement can be used to prematurely exit a loop based on a particular condition.