Medium-EasyUnderstandSpring Bootmultiple-choice

What does @Transactional do when placed on a service method?

Understand Tests comprehension and ability to explain concepts.

Answer Options

AIt caches the method result for subsequent calls
BIt wraps the method in a database transaction, committing on success and rolling back on RuntimeException
CIt synchronizes the method to prevent concurrent access
DIt logs all database queries made by the method

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 15+ more Spring Boot questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Spring Boot topic (Programming Languages).

More Spring Boot Questions