Show List
Quiz - JDBC - 4
Select the right answer for below questions:
What is the use of setFetchDirection method in JDBC?
To set the transaction isolation level
To execute a SELECT statement
To set the fetch direction for the ResultSet
To execute an UPDATE statement
To set the fetch direction for the ResultSet
What is the use of setFetchSize method in JDBC?
To set the number of rows to be retrieved in a single batch
To set the fetch direction for the ResultSet
To execute a SELECT statement
To execute an UPDATE statement
To set the number of rows to be retrieved in a single batch
What is the use of getMaxRows method in JDBC?
To set the number of rows to be retrieved in a single batch
To execute a SELECT statement
To get the maximum number of rows in a ResultSet
To execute an UPDATE statement
To get the maximum number of rows in a ResultSet
What is the use of setMaxRows method in JDBC?
To set the number of rows to be retrieved in a single batch
To execute a SELECT statement
To execute an UPDATE statement
To set the maximum number of rows in a ResultSet
To set the maximum number of rows in a ResultSet
What is the use of setReadOnly method in JDBC?
To set the transaction isolation level
To execute a SELECT statement
To set a ResultSet as read-only
To execute an UPDATE statement
To set a ResultSet as read-only
What is the use of setTransactionIsolation method in JDBC?
To set a ResultSet as read-only
To set the transaction isolation level
To execute a SELECT statement
To execute an UPDATE statement
To set the transaction isolation level
What is the use of setAutoCommit method in JDBC?
To set the transaction isolation level
To execute a SELECT statement
To execute an UPDATE statement
To set the auto-commit mode for a Connection
To set the auto-commit mode for a Connection
What is the use of commit method in JDBC?
To commit a transaction
To close a Connection
To execute a SELECT statement
To execute an UPDATE statement
To commit a transaction
What is the use of rollback method in JDBC?
To close a Connection
To execute a SELECT statement
To rollback a transaction
To execute an UPDATE statement
To rollback a transaction
What is the use of close method in JDBC?
To close a Connection
To commit a transaction
To execute a SELECT statement
To execute an UPDATE statement
To close a Connection
Submit
Retry
{"qz1-311812":"To set the fetch direction for the ResultSet","qz1-311813":"To set the number of rows to be retrieved in a single batch","qz1-311814":"To get the maximum number of rows in a ResultSet","qz1-311815":"To set the maximum number of rows in a ResultSet","qz1-311816":"To set a ResultSet as read-only","qz1-311817":"To set the transaction isolation level","qz1-311818":"To set the auto-commit mode for a Connection","qz1-311819":"To commit a transaction","qz1-311820":"To rollback a transaction","qz1-311821":"To close a Connection"}
Leave a Comment