The ________ method of Connection interface sets the changes made since the previous commit/rollback permanent.
- commit()
- persistChanges()
- saveChanges()
- updateChanges()
The commit() method of the Connection interface in JDBC is used to make the changes made since the previous commit or rollback permanent. It effectively saves the changes to the database. Other options are not valid methods for this purpose.
Loading...
Related Quiz
- Consider a scenario where you want to evaluate multiple conditions and execute a block of code when at least one of the conditions is true. Which of the following control structures is the most appropriate?
- If a class implements two interfaces with default methods having the same signature, the compiler will throw an error unless the class ________ the conflicting method.
- A variable declared as double d = 10.3; occupies ________ bytes of memory.
- How does Java's try-with-resources statement, introduced in Java 7, enhance exception handling?
- In memory, the rows of a two-dimensional array in Java can be __________.