Which statement is NOT a characteristic of Spring's PlatformTransactionManager base interface (select one)
A. When declaring a PlatformTransactionManager implementation inside Spring configuration: as a requirement, the bean id should be "transactionManager"
B. The PlatformTransactionManager interface abstracts the differences between local and JTA transactions
C. There are various implementations of JTA transaction managers for different Java EE containers
D. PlatformTransactionManager is used in both declarative and programmatic transaction management
正解:A
質問 2:
Choose the statement that does NOT apply to Spring's JdbcTemplate (select one)
A. All JdbcTemplate methods throw SQLExceptions which you are required to handle
B. The JdbcTemplate provides methods for query execution
C. The JdbcTemplate does not write or generate SQL statements for you
D. The JdbcTemplate provides the ability to work with result sets
正解:A
質問 3:
What is the principal purpose of Spring's Security tag library? (Select one)
A. To allow Spring Security to be applied to XHTML
B. To provide functionality in JSP pages, such as hiding certain sections based on roles
C. To allow certain URLs to be tagged as requiring secure access
D. To provide a mechanism for applying security to Spring Web Services
正解:B
質問 4:
Which of the following scenarios requires you to instantiate an ApplicationContext using the 'new' keyword? (Select one)
A. Running your Spring application inside a JUnit test (using SpringJUnit4ClassRunner)
B. Both a and b
C. Deploying your Spring application in an application server, packaged in a WAR file
D. Bootstrapping your Spring application within a Java main() method
正解:D
質問 5:
Identify the correct statement(s) regarding the following pointcut: execution(@com.springsource.MyCustomAnnotation void *(..))
A. Spring does not support annotations inside its pointcut expression language
B. This will select join points representing methods that may have a public, protected or default visibility
C. This will select join points representing void methods that are annotated by @com.springsource.MyCustomAnnotation
D. This pointcut will in no situation ever be able to select any join points
正解:C
質問 6:
Which of the following statements about Spring and unit testing is true? (Select one)
A. Spring provides an internal mock framework so there is no need for a third-party mock framework such as Mockito or EasyMock
B. Both a and b
C. Neither a or b
D. Spring provides an abstraction to existing Mock frameworks
正解:C
質問 7:
If you annotate one of your classes with @Component, which of the following should you do to have Spring automatically detect your class and load it as a bean? (Select one or several answers)
A. Ensure that you specify a valid bean name in the @Component annotation
B. Ensure that you specify a valid @Scope for the bean
C. Ensure that <context: annotation-config/> is specified in the XML configuration
D. Ensure that you have added <context:component scan> in the XML configuration
正解:D
質問 8:
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. FactoryBean is a Spring interface
C. Factory objects used in Spring do not necessarily have to implement the FactoryBean interface
D. The Spring configuration <property name="someValue" ref="myFactoryBeanImpl"/> will ALWAYS inject the instance of the FactoryBean implementation
正解:D
Kato -
Pass4TestさんがこのCoreSpringV3.2の学習の仕方をガイドしてくれるのが、とってもおきにいりでぇござんす