JDBC allows manual transaction control via commit() and rollback().
By default, JDBC operates in auto-commit mode, where each SQL statement is a transaction. For manual control, you can disable auto-commit and use commit() to save changes or rollback() to undo them. This is crucial in scenarios like order processing in an e-commerce app, where you need to ensure all order steps are completed successfully before committing.