多选题Which the two are true about the JSTL core iteration custom tags?()AIt may iterate over arrays, collections, maps and strings.BThe body of the tag may contain EL code, but not scripting code.CWhen looping over collections, a loop status object may be u

题目
多选题
Which the two are true about the JSTL core iteration custom tags?()
A

It may iterate over arrays, collections, maps and strings.

B

The body of the tag may contain EL code, but not scripting code.

C

When looping over collections, a loop status object may be used in the tag body.

D

It may iterate over a map, but only the key of the mapping may be used in the tag body.

E

When looping over integers (for example begin1=’1’ end=’10’), a loop status object may not be used in the tag body.

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

第1题:

void waitForSignal() {  Object obj = new Object();  synchronized (Thread.currentThread()) {  obj.wait();  obj.notify();  }  }  Which is true?() 

  • A、 This code may throw an InterruptedException.
  • B、 This code may throw an IllegalStateException.
  • C、 This code may throw a TimeoutException after ten minutes.
  • D、 This code will not compile unless “obj.wait()” is replaced with “((Thread) obj).wait()”.
  • E、 Reversing the order of obj.wait() and obj.notify() may cause this method to complete normally.
  • F、 A call to notify() or notifyAll() from another thread may cause this method to complete normally.

正确答案:B

第2题:

Which two statements are true about the security-related tags in a valid Java EE deployment descriptor?()

  • A、Every  tag must have at least one  tag.
  • B、A  tag can have many  tags.
  • C、A given  tag can apply to only one  tag.
  • D、A given  tag can contain from zero to many  tags.
  • E、It is possible to construct a valid  tag such that,for a given resource,no user rolescan access that resource.

正确答案:B,E

第3题:

Which two are true?()

A.A finalizer may NOT be invoked explicitly.

B.The finalize method declared in class Object takes no action.

C.super.finalize()is called implicitly by any over riding finalize method.

D.The finalize method for a given objec twill be called no more than once by the garbage collector.

E.The order in which finalize will be called on two objects is based on the order in which the two objects became finalizable.


参考答案:B, D

第4题:

Which the two are true about the JSTL core iteration custom tags?()

  • A、 It may iterate over arrays, collections, maps and strings.
  • B、 The body of the tag may contain EL code, but not scripting code.
  • C、 When looping over collections, a loop status object may be used in the tag body.
  • D、 It may iterate over a map, but only the key of the mapping may be used in the tag body.
  • E、 When looping over integers (for example begin1=’1’ end=’10’), a loop status object may not be used in the tag body.

正确答案:A,C

第5题:

Given the Tag:   Assuming the tag referenced by my Tags: get Advice uses the Classic event model,  which is true?()

  • A、 The do After Body method is called.
  • B、 The doEnd Tag method is NOT called.
  • C、 The type attribute may be specified in the TLD
  • D、 The do Start Tag Method must always return SKIP_BODY.
  • E、 The TLD for this tag must NOT include a  tag.

正确答案:C

第6题:

11. List list = // more code here  12. Collections.sort(list, new MyComparator());  Which code will sort this list in the opposite order of the sort in line 12?() 

  • A、 Collections.reverseSort(list, new MyComparator());
  • B、 Collections.sort(list, new MyComparator()); list.reverse();
  • C、 Collections.sort(list, new InverseComparator( new MyComparator()));
  • D、 Collections.sort(list, Collections.reverseOrder( new MyComparator()));

正确答案:D

第7题:

Assume the tag handler for a st:simple tag extends Simple Tag Support. In what way can scriptlet code beused in the body of st:simple?()

  • A、Set the body content type to JSP in the TLD
  • B、Scriptlet code is NOT legal in the body of st:simple.
  • C、Add scripting-enabled="true" to the start tag for the st:simple element
  • D、Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and place the scriptlet code in the body of that tag

正确答案:B

第8题:

Which statement is TRUE concerning buoyant work vests aboard tankers ________.

A.They may be worn while working on deck but not while working over the side

B.They must be used only under supervision of a designated ship's officer

C.They will be accepted for up to 10% of the required life preservers

D.They may be worn during drills


正确答案:B

第9题:

Assume the tag handler for a st:simpletag extends SimpleTagSupport. In what way can scriptlet code be used in the body of st:simple?()

  • A、 Set the body content type to JSP in the TLD
  • B、 Scriptlet code is NOT legal in the body of st:simple
  • C、 Add scripting-enabled= “true” to the start tag for the st:simple element
  • D、 Add a pass-through Classic tag with a body content type of JSP to the body of st:simple, and      place the scriptlet code in the body of that tag.

正确答案:B

第10题:

Which two statements are true about the use of the procedures listed in the vsysaux_occupants.move_procedure column?()

  • A、The procedure may be used for some components to relocate component data to the SYSAUX tablespace from its current tablespace.
  • B、The procedure may be used for some components to relocate component data from the SYSAUX tablespace to another tablespace.
  • C、All the components may be moved into SYSAUX tablespace.
  • D、All the components may be moved from the SYSAUX tablespace.

正确答案:A,B

更多相关问题