Explore topic-wise MCQs in Spring.

This section includes 4 Mcqs, each offering curated multiple-choice questions to sharpen your Spring knowledge and support exam preparation. Choose a topic below to get started.

1.

If there s an existing transaction in progress, the current method should run within the nested transaction.

A. Required
B. MANDATORY
C. NESTED
D. NEVER
Answer» D. NEVER
2.

The current method should not run within a transaction. If there s an existing transaction in progress, an exception will be thrown.

A. Required
B. MANDATORY
C. SUPPORTS
D. NEVER
Answer» E.
3.

If there s an existing transaction in progress, the current method can run within this transaction.

A. Required
B. REQUIRES NEW
C. SUPPORTS
D. NOT SUPPORTED
Answer» D. NOT SUPPORTED
4.

If there s an existing transaction in progress, the current method should run within this transaction.

A. Required
B. REQUIRES NEW
C. SUPPORTS
D. NOT SUPPORTED
Answer» B. REQUIRES NEW