Java Written test Bank (02 issue)
11. The following about the IOC description error in spring features ()
A,ioc means that the relationship between programs is directly manipulated by program code.
B, the so-called "control reversal" refers to the control from the application code to the external container, that is, the transfer of control rights
C,IOC the responsibility to create the control into the framework, from the application code out of the
D, when using Spring's IOC container, you only need to indicate the object that the component needs, and at run time Spring's IOC container will provide it with the XML configuration data
Correct answer: A
12. Which feature is promoted by Spring 3 ()
A, support for more annotations
B, it's all wrong.
C, add additional lifecycle methods
D, support for more bean scopes
Correct answer: A
13. In spring MVC, which class is responsible for handling HTTP requests and responses ()
A,dispatcherservlet
B,requesthandler
C,httpservlet
D,springcontroller
Correct answer: A
14, Spring DAO exception is a common exception in spring, right ()
A, sometimes right
B, correct
C, error
Correct answer: B
15. The transaction features supported by spring include ()
A, the propagation behavior of the transaction
B, transaction rollback
C, all options
D, the isolation level of the transaction
Correct answer: C
16, Spring, Beanfactory is the popular way to load beans, which of the following options is the right way to create beanfactory ()
A,beanfactory factory = new Beanfactory (New FileInputStream ("Beans.xml"));
B,beanfactory factory = new Xmlbeanfactory ("Classpath:beans.xml");
C,beanfactory factory = new Beanfactory ("Beans.xml");
D,beanfactory factory = new Xmlbeanfactory (Newfileinputstream ("Beans.xml"));
Correct answer: D
17, the use of XML configuration can achieve SPRINGAOP, correct ()
That's right
Error
Correct answer: A
18. How Spring handles XML compilation (Marshal/unmarshal) ()
A, packed a lot of libraries, including Jackson and JAXB.
B, do not support Marshaller/unmarshaller
C, provides its own fast, simple XML Marshaller/unmarshaller
Correct answer: A
19. The "@Cacheable" annotation in Spring is similar to which of the following annotations ()
A, @CacheDefaults
B, @CachePut
C, @CacheResult
D, @CacheGet
Correct answer: C
20. The "@Transactional" annotation in Spring is implemented with AOP and is correct ()
A, wrong
B, correct
Correct answer: B