SpringSource Core-Spring (based on Spring 3.2) - CoreSpringV3.2 Exam Practice Test
In what order will these events occur during the initialization of the application? (Select one)
Select the best response
1 Setter Dependency Injection 2 Bean constructor 3 call BeanFactoryPostProcessors 4 call BeanPostProcessors
Select the best response
1 Setter Dependency Injection 2 Bean constructor 3 call BeanFactoryPostProcessors 4 call BeanPostProcessors
Correct Answer: C
Vote an answer
public class AppConfig {
public ClientService clientService() {
return new ClientServiceImpl();
}
}
The Spring Java configuration above is NOT correct. Why? (select one)
public ClientService clientService() {
return new ClientServiceImpl();
}
}
The Spring Java configuration above is NOT correct. Why? (select one)
Correct Answer: A
Vote an answer
Which of the following statements is NOT true with respect to Spring's ApplicationContext? (select one)
Correct Answer: A
Vote an answer
import com.springsource.service.*;
...
@Configuration
public class AppConfig {
@Bean
public ClientService clientService() {
return new ClientServiceImpl();
}
}
What is the id of the declared bean? (Select one)
...
@Configuration
public class AppConfig {
@Bean
public ClientService clientService() {
return new ClientServiceImpl();
}
}
What is the id of the declared bean? (Select one)
Correct Answer: A
Vote an answer
Which of the following statements is true concerning configuring JMS Resources with Spring? (Select one)
Correct Answer: C
Vote an answer
Identify the correct statement(s) regarding the following pointcut: execution(@com.springsource.MyCustomAnnotation void *(..))
Correct Answer: B
Vote an answer
Which of the following statements is NOT true about Spring AOP? (Select one)
Correct Answer: B
Vote an answer
Spring's RMI Service Exporter provides which of the following services? (select one)
Correct Answer: D
Vote an answer
Which of these is NOT a characteristic of Spring JDBC? (Select one)
Correct Answer: A
Vote an answer
Which of the following is NOT true about @Controller-annotated classes? (Select one)
Correct Answer: B
Vote an answer