0 votes
in Spring by

The @Autowired annotation can be used on which of the following?

a) Constructor

b) Setter method

c) Field

d) All of the above

1 Answer

0 votes
by
d) All of the above

Explanation:

The @Autowired annotation can be used on constructors, setter methods, and fields to inject dependencies automatically.
...