,1. Multiple Choice: Which of the following is not a feature of the
Spring Framework?
a) Dependency Injection
b) Aspect-oriented programming
c) Inheritance-based form validation
d) Portable Service Abstractions
Answer: c) Inheritance-based form validation. Rationale:
Spring Framework provides support for custom validation
through the Validator interface but does not have a feature called
'inheritance-based form validation'.
2. Fill-in-the-Blank: The annotation used to handle exceptions in
Spring MVC is ____________.
Answer: @ExceptionHandler. Rationale: The
@ExceptionHandler annotation is used within a controller to
handle exceptions specifically for handler methods.
3. True/False: In Hibernate, the SessionFactory is thread-safe.
Answer: True. Rationale: The SessionFactory is a thread-safe
object that is typically created once during application
initialization and used for creating Session instances.
, 4. Multiple Response: Select all that apply. Which of the
following are valid module layers in the Spring Framework?
a) Data Access/Integration
b) Web
c) Messaging
d) Instrumentation
e) AOP
Answers: a), b), c), e). Rationale: All are valid module layers
except for 'Instrumentation', which is not recognized as a separate
layer in the Spring Framework.
5. Multiple Choice: What does the @Transactional annotation do
in Spring?
a) Defines a cache policy
b) Marks a method to execute within a database transaction
c) Sets the isolation level of a database connection
d) Configures the transaction management type
Answer: b) Marks a method to execute within a database
transaction. Rationale: The @Transactional annotation is used to
declare that a method should be executed within a transactional
context.
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ClemAcademia. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $17.49. You're not tied to anything after your purchase.