Free CoreSpringV3.2 Exam Braindumps
Core-Spring (based on Spring 3.2) Questions 16–20 (page: 5)

Updated On: 9-Feb-2026

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



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



Viewing page 5 of 21
Viewing questions 21 - 25 out of 97 questions


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

AI Tutor AI Tutor 👋 I’m here to help!