1.
Select which statement(s) is/are true with respect to programming to interfaces with Spring
2.
Consider the following class: public class LegacySingleton { private LegacySingleton(){} public static LegacySingleton getAServiceInstance() { return new LegacySingleton(); } } How can a bean of type LegacySingleton be created (using XML configuration)? (select one)
3.
Which of the following scenarios requires you to instantiate an ApplicationContext using the `new' keyword? (Select one)
4.
Consider the following code sample which creates an ApplicationContext from a file called "application- config.xml" in the "rewards.internal" package, and a file called test-infra-config.xml in the current folder: ApplicationContext context = new FileSystemXmlApplicationContext("classpath:rewards.internal.application-config.xml", "file:test- infra- config.xml"); Which of those statements is true? (select one)
5.
Which of the following statements is NOT true with respect to Spring's ApplicationContext? (select one)
6.
Select which of the following configuration tasks would be implemented using Spring's XML "context" namespace (select one or several answers)
7.
Which of the following statements about the BeanFactoryPostProcessor are true? (select one or several answers)
8.
Identify which statement indicates potential advantages of using Spring's Dependency Injection (select one)
9.
You want to externalize constants from your Spring XML configuration file into a .properties file to your Spring beans. Which mechanism could you use? (select one)
10.
Which of the following statements about the @PostConstruct annotation is NOT true? (select one)