• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 4 out of 50 pages
Exam (elaborations)

(CS) ITSW 3173 D287 Java Frameworks Complete FA 2025 (With Solns)

Document preview thumbnail
Preview 4 out of 50 pages

(CS) ITSW 3173 D287 Java Frameworks Complete FA 2025 (With Solns)(CS) ITSW 3173 D287 Java Frameworks Complete FA 2025 (With Solns)(CS) ITSW 3173 D287 Java Frameworks Complete FA 2025 (With Solns)(CS) ITSW 3173 D287 Java Frameworks Complete FA 2025 (With Solns)

Content preview

CS – ITSW 3173 D287 Java Frameworks

Complete Final Assessment (Qns & Ans)

2025



Question 1 (Multiple Choice)
Case:
A development team is building an enterprise application using
the Spring Framework. In order to reduce tight coupling and
improve testability, they plan to use dependency injection (DI)
throughout the application.


Question:
Which DI approach is generally considered best practice in Spring
to ensure immutability and mandatory dependency provision?
A. Field injection
B. Setter injection
©2025

,C. Constructor injection
D. Interface injection


Correct ANS: C. Constructor injection


Rationale:
Constructor injection ensures that required dependencies are
provided when an object is created, promoting immutability and
making unit testing easier. Field injection and setter injection are
more prone to hidden dependencies and potential
NullPointerExceptions if not managed carefully.


---


Question 2 (Fill in the Blank)
Case:
While configuring Spring beans, a developer needs to delay the
instantiation of a resource‑heavy bean until it is first needed.


Statement:
Configuring a bean to be created only when it is first requested is
called ______.

©2025

, Correct ANS: lazy initialization


Rationale:
Lazy initialization (often configured via the `lazy-init` attribute or
the `@Lazy` annotation) defers bean creation until it is actually
needed, which can help reduce startup time and resource usage in
large applications.


---


Question 3 (True/False)
Case:
A software engineer is applying declarative transaction
management in a Spring-based application by annotating service
methods.


Statement:
Annotating a method with `@Transactional` in Spring ensures
that the method’s execution is wrapped within a database
transaction.


Correct ANS: True
©2025

, Rationale:
The `@Transactional` annotation instructs Spring to manage
transactions declaratively. This means that, when the annotated
method is invoked, Spring will begin a transaction, commit it on
successful completion, or roll it back if an exception occurs.


---


Question 4 (Multiple Response)
Case:
A security specialist is securing a web application using Spring
Security. The team wishes to leverage Spring Security’s built‑in
authentication and authorization mechanisms.


Question:
Which of the following features are provided by Spring Security?
(Select all that apply.)
A. URL-based security
B. Method-level security
C. CSRF protection
D. Automatic XSS sanitization

©2025

Document information

Uploaded on
April 28, 2025
Number of pages
50
Written in
2024/2025
Type
Exam (elaborations)
Contains
Unknown
$16.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
emiliophd
3.4
(21)
Sold
191
Followers
46
Items
4725
Last sold
1 month ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions