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 34 discussion

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

Which three types of objects can be returned form a JdbcTemplate query? (Choose three.)

  • A. Generic MapS
  • B. Simple types (int, long, String, etc)
  • C. JSONObject
  • D. User defined types
  • E. Properties
  • F. XMLObject
Show Suggested Answer Hide Answer
Suggested Answer: ABD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Selected Answer: ABD
A. Generic Maps: JdbcTemplate can return results as a List<Map<String, Object>>, where each Map represents a row with column names as keys. B. Simple types (int, long, String, etc): JdbcTemplate can return single values directly, such as an int, long, or String, especially useful for aggregate functions or queries expected to return a single value. D. User defined types: JdbcTemplate can map query results to custom user-defined types (JavaBeans) using a RowMapper or BeanPropertyRowMapper.
upvoted 1 times
...
3cef6cd
6 months, 3 weeks ago
Selected Answer: ABD
GenericMaps, SimpleObjects and User Defined Types are returned.
upvoted 3 times
...
Azuni
1 year, 3 months ago
Selected Answer: ABD
Generic Maps (Map<String, Object>) is one of the return types of the JdbcTemplate. To return Properties, you need to create a custom RowMapper to map the ResultSet to a Property. It doesn't support it by default.
upvoted 1 times
Azuni
1 year, 3 months ago
I went tough the official VMWare course work and they state exactly that GenericMaps, SimpleObjects and User Defined Types are returned.
upvoted 1 times
...
...
rhuanca
1 year, 8 months ago
why not A instead of E. Generic Maps are more common query than properties in JdbcTemplate.
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 ...