0 votes
in Spring by
Which of the following is true when using @Autowired on a setter method?

a) The setter method becomes optional

b) The related property can't be injected using XML

c) The setter method can have any name

d) The setter method can have multiple parameters

1 Answer

0 votes
by
c) The setter method can have any name

Explanation:

While traditionally, setter methods follow the setPropertyName pattern, when using @Autowired, the method name does not have to follow this convention.
...