Java written test question Bank (03 issue) __java

Source: Internet
Author: User
Tags aop
Java Written test Bank (03 issue)

21. Use spring MVC to process normal page requests, which of the following is correct ()

1. Request: Request submission to server

2. Distribution: The Distributor uses the Web application configuration information to distribute the request to the appropriate controller

3. Service invocation: The controller interacts with the business layer

4. Response: Controller update model, return execution results to client presentation

A,1-2-3-4

B,1-4-3-2

C,1-4-2-3

D,1-3-2-4

Correct answer: A


22. Which of the following are not annotations of Spring AOP ()

A, @Before

B, @Around

C, @BeforeReturning

D, @AfterThrowing

Correct answer: C


23. "@RequestMapping is what part of Spring ()

A,dao

B,security

C,web MVC

D,web

Correct answer: C


24, the following description of spring and struts2, the wrong is ()

The entrance to A,spring MVC is filter, and struts2 is the servlet

B,spring MVC is a method based design, while Struts2 is a class based design

C,STRUTS2 has its own interceptor mechanism, Spring MVC is an independent AOP approach

D, the spring MVC approach is essentially independent of the request response data, struts2 all the action variables are shared

Correct answer: A


25. In spring, which of the following options supports ORM ()

A,ojb

B,toplink

C, all options

D,java Data Objects (JDO)

E,ibatis

Correct answer: C


26, Spring and Hibernate integration, which of the following is the sessionfactory correct implementation ()

A,localsessionfactorybean

B,localfactorybean

C,sessionfactory

D,sessionfactorybean

Correct answer: A


27, which of the following is Spring's core servlet ()

A,webservlet

B,springservlet

C,dispatcherservlet

D,iocservlet

Correct answer: C


28, spring-test with what convention use HTTP session and HTTP request object in Test ()

A,mvc

b,open-closed principle

C,daos

D,mock objects

Correct answer: D


29, Spring, "@Cacheable" key generation method, which of the following is correct ()

A, any expression that can be a method parameter and its member variables

B, only all method parameters can be used, but the order may be adjusted

C, only all method parameters can be used, and the order cannot be adjusted

D, you can only specify whether the method parameter participates in the build of the key and cannot control the parameter's member variables

Correct answer: A


30, using @required but not associated beans to note setter methods, will occur ()

A,bean is set to null

B, start the exception

C,spring will create the bean

D, nothing's going to happen.

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.