Free CoreSpringV3.2 Exam Braindumps (page: 5)

Page 4 of 25

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)

  1. Use a PropertyEditor
  2. Use a PropertyPlaceholderConfigurer
  3. Use <util:constant ... />
  4. Use a BeanPostProcessor

Answer(s): B



Which of the following statements about the @PostConstruct annotation is NOT true? (select one)

  1. It is a JSR-250 standard Java annotation
  2. There are no restrictions on method name or visibility of a method which can be annotated with @PostConstruct
  3. It can be enabled using the <context:annotation-config /> tag
  4. It is called before setter injection

Answer(s): D



Using Spring AOP, which of the following Spring annotations cause behavior to be added (select one)

  1. @Secured
  2. @Transactional
  3. Both a and b
  4. Neither a or b

Answer(s): C



Two beans of type MyBean are defined in the ApplicationContext with singleton scope, with ids "myBean1" and "myBean2". The getBean() method is called once for each bean.
Which statement is true about the two references returned? (Select one)

  1. The two references refer to different instances of the same type
  2. Both references refer to the same bean instance
  3. One of the references will be null
  4. A RuntimeException will be thrown when the ApplicationContext is initialized

Answer(s): A






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

CoreSpringV3.2 Exam Discussions & Posts