You have created a JSP that includes instance variables and 

题目
单选题
You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately,after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fixthese problems would require significant recoding, but you are already behind schedule. Which JSP codesnippet can you use to resolve these concurrency problems?()
A

<%@ page isThreadSafe=’false’ %>

B

<%@ implements SingleThreadModel %>

C

<%! implements SingleThreadModel %>

D

<%@ page useSingleThreadModel=’true’ %>

E

<%@ page implements=’SingleThreadModel’ %>

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

You are creating a new JSP page and you need to execute some code that acts when the page is firstexecuted, but only once. Which three are possible mechanisms for performing this initialization code?()

  • A、In the init method.
  • B、In the jspInit method.
  • C、In the constructor of the JSP’s Java code.
  • D、In a JSP declaration, which includes an initializer block.
  • E、In a JSP declaration, which includes a static initializer block.

正确答案:B,D,E

第2题:

Given that Thing is a class, how many objects and reference variables are created by the following code?()   Thing item, stuff;   item = new Thing();   Thing entity = new Thing();

  • A、One object is created
  • B、Two objects are created
  • C、Three objects are created
  • D、One reference variable is created
  • E、Two reference variables are created
  • F、Three reference variables are created.

正确答案:B,F

第3题:

For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. Which JSP code snippetmust you use to declare this instance variable in the JSP Document?()

  • A、<jsp:declaration>int count = 0;<jsp:declaration>
  • B、<%! int count = 0; %>
  • C、<jsp:declaration.instance>int count = 0;. <jsp:declaration.instance>
  • D、<jsp:scriptlet.declaration>int count = 0;. <jsp:scriptlet.declaration>

正确答案:A

第4题:

You work as a database administrator for Supportcenter.cn. In your production database, the size of Database Buffer Cache needs to be increased immediately for the current as well as future instances of the database. The Oracle instance has been configured to accommodate any changes in the size of the memory structures. At this is production database, you want to accomplish this task with no impact on the user’s connections. Which activity must you have completed before accomplishing this task?()

  • A、You must have started the database instance in restricted mode.
  • B、You must have started the database instance inNORMALmode.
  • C、You must have started the database instance with server parameter file.
  • D、You must have started the database instance but must not have mounted.
  • E、You must have started the database instance but must not have opened.

正确答案:C

第5题:

While designing your database, you have created the EMPLOYEEStable as an index-organized (IOT). You want to create a bitmap index on the JOD_IDcolumn to make queries faster. Which task must have been completed so that you are able to create the bitmap index?()

  • A、 A primary key must have been created.
  • B、 A mapping table must have been created.
  • C、 An overflow tablespace must have been specified.
  • D、 The PCTTHRESHOLD option must have been specified.

正确答案:B

第6题:

You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately,after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fixthese problems would require significant recoding, but you are already behind schedule. Which JSP codesnippet can you use to resolve these concurrency problems?()

  • A、<%@ page isThreadSafe=’false’ %>
  • B、<%@ implements SingleThreadModel %>
  • C、<%! implements SingleThreadModel %>
  • D、<%@ page useSingleThreadModel=’true’ %>
  • E、<%@ page implements=’SingleThreadModel’ %>

正确答案:A

第7题:

You have built your own light-weight templating mechanism. Your servlets, which handle each request,dispatch the request to one of a small set of template JSP pages. Each template JSP controls the layout ofthe view by inserting the header, body, and footer elements into specific locations within the template page.The URLs for these three elements are stored in request scoped variables called, headerURL, bodyURL,and footerURL, respectively. These attribute names are never used for other purposes. Which JSP codesnippet should be used in the template JSP to insert the JSP content for the body of the page?()

  • A、<jsp:insert page=’${bodyURL}’ />
  • B、<jsp:insert file=’${bodyURL}’ />
  • C、<jsp:include page=’${bodyURL}’ />
  • D、<jsp:include file=’${bodyURL}’ />
  • E、<jsp:insert page=’<%= bodyURL %>’ />

正确答案:C

第8题:

While designing your database, you have created the EMPLOYEES table as an index/x7forganized table (IOT). You want to create a bitmap index on the JOB_ID column to make queries faster. Which task must have been completed so that you are able to create the bitmap index?()

  • A、A primary key must have been created.
  • B、A mapping table must have been created.
  • C、An overflow tablespace must have been specified.
  • D、The PCTTHRESHOLD option must have been specified.

正确答案:B

第9题:

Using Oracle Scheduler you have scheduled two jobs, JOB_A and JOB_B, to run at 9:00 p.m. every Friday. You want both the jobs to use a single resource plan, WEEKEND_PLAN. Which task must have already been performed to enable you to achieve this objective?()

  • A、 A window must have been created with the WEEKEND_PLAN resource plan.
  • B、 A program must have been created with the WEEKEND_PLAN resource plan.
  • C、 A job class must have been created with the WEEKEND_PLAN resource plan.
  • D、 A windows group must have been created with the WEEKEND_PLAN resource plan.

正确答案:A

第10题:

You need to design a strategy for identifying the number of instances that any one SQL Server 2005 computer will support. What should you do?()

  • A、Specify that each server must have one instance for each customer.
  • B、Specify that each server must each have only one instance.
  • C、Specify that each server must have one instance for each database that is hosted on that server.
  • D、Specify that each server must have one instance for each customer who has one or more databases that are hosted on that server.

正确答案:D

更多相关问题