Transactions, Spring.
because we have made UserNotEligibleToDriveException to extend RunTimeException. But this depends on the use case as we are trying to change the type of Exception. In general, it is safe to use rollbackFor attribute to do the rollback of Checked Exceptions Programmatic Transaction Management We