ExamGecko
Question list
Search
Search

Question 40 - 2V0-72.22 discussion

Report
Export

Refer to the exhibit.

Which two statements are correct regarding the HelloAutoConfig auto-configuration class when it is specified in the META-INF/spring.factories file? (Choose two.)

A.
A HelloService bean will be created from the helloService() method even if the HelloService.class is not in the classpath.
Answers
A.
A HelloService bean will be created from the helloService() method even if the HelloService.class is not in the classpath.
B.
A HelloService bean will be created from the helloService() method only when there is no other HelloService bean in the ApplicationContext.
Answers
B.
A HelloService bean will be created from the helloService() method only when there is no other HelloService bean in the ApplicationContext.
C.
This auto-configuration class is used only when the HelloService.class is not on the classpath.
Answers
C.
This auto-configuration class is used only when the HelloService.class is not on the classpath.
D.
This auto-configuration class is used only when the HelloService.class is on the classpath.
Answers
D.
This auto-configuration class is used only when the HelloService.class is on the classpath.
E.
A HelloService bean will be created from the helloService() method and will replace existing a HelloService bean in the ApplicationContext.
Answers
E.
A HelloService bean will be created from the helloService() method and will replace existing a HelloService bean in the ApplicationContext.
Suggested answer: B, D
asked 16/09/2024
sd sdg
32 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first