Which two statements describe Spring JdbcTemplate? (Choose two.)
Which two statements describe Spring JdbcTemplate? (Choose two.)
The JdbcTemplate provides the ability to work with result sets and methods for query execution. It simplifies the database interaction by handling the connection, preparing and executing the statement, and processing the result set. It does not throw SQLExceptions directly but converts them to Spring's DataAccessException. Additionally, it can perform various SQL operations like insert, update, delete, and query, but it does not generate SQL statements automatically; you need to provide the SQL yourself.
B and D are correct. A is false. JdbcTemplate handles SQLExceptions internally, converting them to Spring's DataAccessException hierarchy, which makes it unnecessary for you to catch SQLExceptions explicitly. C is false. JdbcTemplate can perform both insert and update operations. It supports a wide range of database operations, including insertion, update, deletion, and querying. E is false. JdbcTemplate does not generate SQL statements. Instead, it allows you to execute SQL statements that you provide. It does not generate SQL statements automatically
why not B and D ?