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
D - This is true because Spring's JdbcTemplate class offers a variety of methods to execute SQL queries against a relational database. These include methods for executing SQL queries (query, queryForObject, queryForList, etc.), updates (update), and batch operations (batchUpdate).
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
nesreenmhd123
Highly Voted 1 year, 1 month agoUteman
Most Recent 1 month, 2 weeks agorhuanca
1 year, 8 months ago