What exception is thrown when a database connection fails in JDBC?
In JDBC, what does the executeQuery() method return?
What is the purpose of Connection.commit() in JDBC?
Which JDBC method executes UPDATE, INSERT, or DELETE statements?
What is the benefit of using PreparedStatement over Statement for repeated queries?
Advertisement
What does ResultSetMetaData.getColumnCount() return?
In JDBC, which class is used to retrieve database metadata information?
What is the difference between execute() and executeUpdate() methods?
Which statement should be used when you need to retrieve column information without executing multiple queries?
What happens if you call next() on a ResultSet after the last row?
Consider a scenario: A developer uses Statement with user input directly in SQL queries. What is the primary risk?
In a JDBC application, when using transactions with setAutoCommit(false), what happens to intermediate savepoints if rollback() is called?
Which JDBC feature should be used for executing multiple SQL statements in a batch for optimal performance?
In JDBC, what is the significance of setting FetchSize on a Statement when dealing with large ResultSets?
When using JDBC with Spring Framework in 2024-25, which approach is recommended for resource management?
Which interface in JDBC is used to execute parameterized queries and prevent SQL injection attacks?
What is the correct sequence to establish a JDBC connection in Java?
Which method of Connection interface is used to start a transaction in JDBC?
In JDBC, what does the BatchUpdate feature allow developers to do?
Which JDBC driver type is considered the most portable across different databases?