Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam 2V0-72.22 All Questions

View all questions & answers for the 2V0-72.22 exam

Exam 2V0-72.22 topic 1 question 57 discussion

Actual exam question from VMware's 2V0-72.22
Question #: 57
Topic #: 1
[All 2V0-72.22 Questions]

Which two statements describe Spring JdbcTemplate? (Choose two.)

  • A. All JdbcTemplate methods throw SQLException which you are required to handle.
  • B. The JdbcTemplate provides the ability to work with result sets.
  • C. The JdbcTemplate can only perform update but not insert to the database.
  • D. The JdbcTemplate provides methods for query execution.
  • E. The JdbcTemplate generates SQL statements.
Show Suggested Answer Hide Answer
Suggested Answer: BE 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
nesreenmhd123
Highly Voted 1 year, 1 month ago
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
upvoted 5 times
...
Uteman
Most Recent 1 month, 2 weeks ago
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).
upvoted 1 times
...
rhuanca
1 year, 8 months ago
why not B and D ?
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...