Free CoreSpringV3.2 Exam Braindumps (page: 4)

Page 3 of 25

Which of the following statements is NOT true with respect to Spring's ApplicationContext? (select one)

  1. The ApplicationContext eagerly instantiates all singleton beans by default
  2. There are many different implementation classes which all implement the ApplicationContext interface
  3. When available, the close() method will cause any registered bean destruction code to be invoked
  4. In a JUnit test using Spring support (with @ContextConfiguration annotation), it is necessary to close the ApplicationContext manually

Answer(s): D



Select which of the following configuration tasks would be implemented using Spring's XML
"context" namespace (select one or several answers)

  1. Enabling component-scanning
  2. Enabling the use of the @Transactional annotation
  3. Enabling the use of the @Required, @PreDestroy and @PostConstruct annotations
  4. Enabling the use of the @Around annotation

Answer(s): A,C



Which of the following statements about the BeanFactoryPostProcessor are true? (select one or several answers)

  1. Allows for the transformation of Spring bean definitions before the beans are instantiated
  2. Allows for the transformation of Spring beans after the beans have been instantiated
  3. Detects annotations such as @PostConstruct and @PreDestroy and then invokes appropriate behavior
  4. The <context:property-placeholder /> tag causes a BeanFactoryPostProcessor to be created

Answer(s): A,D



Identify which statement indicates potential advantages of using Spring's Dependency Injection
(select one)

  1. Dependencies between application components can be managed external to the components themselves
  2. Configuration can be externalized and centralized in a small set of files
  3. Integration testing is made easier because different components used for testing can easily be injected
  4. All of the above

Answer(s): D






Post your Comments and Discuss SpringSource CoreSpringV3.2 exam with other Community members:

CoreSpringV3.2 Exam Discussions & Posts