Download Core-Spring (based on Spring 3-2).test4prep.CoreSpringV3.2.2020-01-15.1e.57q.vcex


Download Exam

File Info

Exam Core-Spring (based on Spring 3.2)
Number CoreSpringV3.2
File Name Core-Spring (based on Spring 3-2).test4prep.CoreSpringV3.2.2020-01-15.1e.57q.vcex
Size 32 Kb
Posted January 15, 2020



How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase
Coupon: EXAMFILESCOM

Coupon: EXAMFILESCOM
With discount: 20%


 
 



Demo Questions

Question 1
Select which statement is true with respect to constructor injection with Spring (select one)

  • A: Multiple parameters can be dependency injected into a constructor
  • B: Using XML configuration, the constructor-arg element may be omitted if the constructor requires a single parameter
  • C: One single bean cannot mix constructor injection with setter injection
  • D: All of the above



Question 2
Consider the following complete configuration sample:
<bean class="rewards.internal.RewardNetworkImpl"> 
        <property name="accountRepository" ref="accountRepository"/> 
</bean> 
<bean class="rewards.internal.account.JdbcAccountRepository"/> 
Which of the following statements is true? (Select one)

  • A: This configuration is correct
  • B: This configuration is not valid because the first bean should have an id. Its value should be "rewardNetwork".
  • C: This configuration is not valid because the second bean should have an id. Its value should be "accountRepository".
  • D: Both (b) and (c)



Question 3
Which of the following statements about the FactoryBean interface is NOT true? (select one)

  • A: A FactoryBean can be used to generate Spring beans of any type
  • B: The Spring configuration <property name="someValue" ref="myFactoryBeanImpl"/> will ALWAYS inject the instance of the FactoryBean implementation
  • C: FactoryBean is a Spring interface
  • D: Factory objects used in Spring do not necessarily have to implement the FactoryBean interface



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

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



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

  • A: Enabling component-scanning
  • B: Enabling the use of the @Transactional annotation
  • C: Enabling the use of the @Required, @PreDestroy and @PostConstruct annotations
  • D: Enabling the use of the @Around annotation



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

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



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

  • A: @Secured
  • B: @Transactional
  • C: Both a and b
  • D: Neither a or b



Question 8
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)

  • A: The two references refer to different instances of the same type
  • B: Both references refer to the same bean instance
  • C: One of the references will be null
  • D: A RuntimeException will be thrown when the ApplicationContext is initialized



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

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



Question 10
What is true regarding bean definition inheritance?

  • A: Parent bean definitions should always be abstract
  • B: Parent bean definitions may be abstract
  • C: The class attribute can be declared in a parent bean definition
  • D: It is not useful to declare an id for a parent bean definition









CONNECT US


ProfExam
PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount..

Get Now!


HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen



HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset