Free CoreSpringV3.2 Exam Braindumps (page: 6)

Page 5 of 25

What is the primary purpose of bean definition inheritance? (Select one or several answers)

  1. To configure Java class inheritance dynamically within the XML bean definition file
  2. To reduce the amount of configuration required by inheriting properties from other bean definitions
  3. To allow Spring beans to be created on the fly from classes declared as abstract
  4. To simplify configuration by allowing multiple properties files to be loaded in a hierarchy to specify bean properties

Answer(s): B



What is true regarding bean definition inheritance?

  1. Parent bean definitions should always be abstract
  2. Parent bean definitions may be abstract
  3. The class attribute can be declared in a parent bean definition
  4. It is not useful to declare an id for a parent bean definition

Answer(s): B,C



<bean name="clientService" class="com.foo.ClientServiceImpl" p:name="myName"/>

Which of the following statements is true regarding the above code sample? (Select one)

  1. This syntax requires the declaration of the "p" namespace
  2. myName is a scalar value (as opposed to a reference to an existing bean)
  3. Both a and b
  4. Neither a or b

Answer(s): C



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

  1. The default behavior is that if a dependency cannot be satisfied with @Autowired, the
    ApplicationContext will throw a RuntimeException
  2. @Autowired is a Spring-specific annotation
  3. Multiple arguments can be injected into a single method using @Autowired
  4. It cannot be used to annotate fields, only constructors and methods

Answer(s): D






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

CoreSpringV3.2 Exam Discussions & Posts