JdbcTemplate Class:-
The JdbcTemplate class is the central class in the JDBC core package. It handles
the creation and release of resources, which helps you avoid common errors such
as forgetting to close the connection. It performs the basic tasks of the core
JDBC workflow such as statement creation and execution, leaving application code
to provide SQL and extract results.
The JdbcTemplate class executes SQL queries, update statements and stored procedure calls, performs iteration over ResultSets and extraction of returned parameter values. It also catches JDBC exceptions and translates them to the generic, more informative, exception hierarchy defined in the org.springframework.dao package.
Instances of the JdbcTemplate class are threadsafe once configured. So you can configure a single instance of a JdbcTemplate and then safely inject this shared reference into multiple DAOs.It handles the exception and provides the informative exception messages by the help of excepion classes defined in the org.springframework.dao package.