Govt Exams
executeUpdate() executes DML statements and returns the number of rows affected.
commit() saves all changes made during the current transaction permanently to the database.
CallableStatement is used to call stored procedures and stored functions in the database.
Connection pooling maintains a pool of reusable connections, reducing the cost of creating new connections repeatedly.
CONCUR_READ_ONLY is the concurrency constant that specifies a read-only ResultSet.
ResultSetMetaData provides information about columns, data types, and column properties of a ResultSet.
Setting autoCommit to false enables manual transaction management where commit() must be explicitly called.
PreparedStatement uses type-specific setter methods like setInt(), setString(), setDate() to bind parameters.
TYPE_SCROLL_INSENSITIVE doesn't reflect concurrent database changes, while TYPE_SCROLL_SENSITIVE may reflect such changes.
executeBatch() returns an int array where each element represents the number of rows affected by each statement in the batch.