Spring interview questions part 44

Spring interview questions part 44

Take as many assements as you can to improve your validate your skill rating

Total Questions: 20

1. Spring’s transaction support offers a set of technology-independent facilities, including transaction managers.

Correct Answer is : all of the mentioned

2. Spring’s core transaction management abstraction is based on the interface:-

Correct Answer is : PlatformTransactionManager

3. The PlatformTransactionManager interface provides methods for working with transactions:

Correct Answer is : all of the mentioned

4. Spring has several built-in implementations of PlatformTransactionManager interface for use with different transaction management APIs.

Correct Answer is : TRUE

5. A transaction manager is declared in the Spring IoC container as a normal bean.

Correct Answer is : TRUE

6. Method that allows you to start a new transaction (or obtain the currently active transaction).

Correct Answer is : getTransaction()

7. PlatformTransactionManager is an abstract unit for transaction management.

Correct Answer is : TRUE

8. Method to start a new transaction with that definition:-

Correct Answer is : getTransaction()

9. To help you control the overall transaction management process and transaction exception handling.

Correct Answer is : TransactionTemplate

10. You just have to encapsulate your code block in a callback class that implements the TransactionCallback interface and pass it to the TransactionTemplate execute method for execution. In this way, you don’t need to repeat the boilerplate transaction management code for this block.

Correct Answer is : TRUE

11. A TransactionTemplate can accept a transaction callback object that implements:-

Correct Answer is : All of the mentioned

12. Spring (since version 2.0) offers a transaction advice that can be easily configured via the:-

Correct Answer is : tx:advice

13. You can omit the transaction-manager attribute in the element if your transaction manager has the name transactionManager.

Correct Answer is : TRUE

14. Transaction capabilities are built on top of the first class support already provided by the core Spring framework.

Correct Answer is : TRUE

15. Spring core framework provides first-class support for transactions.

Correct Answer is : TransactionManager

16. The batch.xml file establishes a:-

Correct Answer is : All of the mentioned

17. Spring Batch will, by default, try to pluck the:-

Correct Answer is : All of the mentioned

18. Spring Batch excels in the robustness it surfaces as simple configuration options for the edge and failure cases.

Correct Answer is : TRUE

19. Element to configure this for the step:-

Correct Answer is : no-rollback-exception-classes

20. no-rollback-exception-classes element Exception classes that should not cause the transaction to roll back.

Correct Answer is : TRUE

Similar Interview Questions

    Search for latest jobs

    Icon
    Icon