Java written Test question Bank (02 issue) __java

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.