Difference between JDBC and Spring JDBC
JDBC
- All the exceptions are compiletime exception (CE)
- CE is java.sql.SQLException (It will print database exceptions).
- User must need to close connection.
- Jdbc PreparedStatement is type safe.
- For select operation always it will return ResultSet.
Spring JDBC
- All the exceptions are runtime exception…