Refer to the exhibit.
What is the id/name of the declared bean in this Java configuration class? (Choose the best answer.)
Refer to the exhibit.
What is the id/name of the declared bean in this Java configuration class? (Choose the best answer.)
In Java configuration classes, the id or name of the declared bean is derived from the name of the method defining the bean. In this case, the method name is 'clientService'. Therefore, the correct id/name of the bean will be 'clientService' with a lowercase 'c'.
C is the best answer
id in this case is taken from the method name, also even when Component Scanning is creating beans it decapitalizes the name of the class. To get a bean with capital first letter you need to specify the name yourself.