网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

Which JSTL code snippet can be used to perform URL rewriting?()

  • A、<a href=’<c:url url="foo.jsp"/>’ />
  • B、<a href=’<c:link url="foo.jsp"/>’ />
  • C、<a href=’<c:url value="foo.jsp"/>’ />
  • D、<a href=’<c:link value="foo.jsp"/>’ />

参考答案

更多 “Which JSTL code snippet can be used to perform URL rewriting?()A、a href=’c:url url="foo.jsp"/’ /B、a href=’c:link url="foo.jsp"/’ /C、a href=’c:url value="foo.jsp"/’ /D、a href=’c:link value="foo.jsp"/’ /” 相关考题
考题 According to STCW Code,which of the following functions must an engineer officer possess?( )

考题 Which code causes only a Level 2 adjacency to be formed under the SONET interface so-2/2/2 withFrame Relay encapsulation?Which code causes only a Level 2 adjacency to be formed under the SONET interface so-2/2/2 with Frame Relay encapsulation?()A.B.C.D.

考题 class One {  void foo() {}  }  class Two extends One {   //insert method here  }  Which three methods, inserted individually at line 14, will correctly complete class Two?()A、 int foo() { /* more code here */ }B、 void foo() { /* more code here */ }C、 public void foo() { /* more code here */ }D、 private void foo() { /* more code here */ }E、 protected void foo() { /* more code here */ }

考题 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.

考题 31. // some code here  32. try {  33. // some code here  34. } catch (SomeException se) {  35. // some code here  36. } finally {  37. // some code here  38. }  Under which three circumstances will the code on line 37 be executed?()A、 The instance gets garbage collected.B、 The code on line 33 throws an exception.C、 The code on line 35 throws an exception.D、 The code on line 31 throws an exception.E、 The code on line 33 executes successfully.

考题 If a vessel subject to PSC inspection, PSC Officer shall give the inspection to the Captain, the given timeframe for rectification of each deficiency is commonly given in a coded form which called “action code”, which code listed below is used for indication of detention of the vessel?()A、10B、30C、17D、16

考题 要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()A、〈%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %〉B、〈%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %〉C、〈%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %〉D、〈%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %〉

考题 Which the JSTL code snippet can be used to import content from another web resource?()A、 c:import url=*foo.jsp”/ B、 c:import page=*foo.jsp”/ C、 c:include url=*foo.jsp”/ D、 c:include page=*foo.jsp”/ E、 Importing cannot be done in JSTL. A standard action must be used instead.

考题 Which the two JSTL URL-related tags perform URL rewriting?()A、 urlB、 linkC、 paramD、 importE、 redirect

考题 In your Certkiller .com database server the parameter PLSQL_CODE_TYPE has been set to NATIVE. Which object would be achieved by the setting?()A、The source PL/SQL code will be stored in native machine code.B、The source PL/SQL code will be stored in interpreted byte code.C、The compiled PL/SQL code will be stored in native machine code.D、The compiled PL/SQL code will be stored in interpreted byte code.

考题 Which three will compile and run without exception?()A、private synchronized Object o;B、void go() {synchronized() { /* code here */ }C、public synchronized void go() { /* code here */ }D、private synchronized(this) void go() { /* code here */ }E、void go() {synchronized(Object.class) { /* code here */ }F、void go() {Object o = new Object();synchronized(o) { /* code here */ }

考题 单选题要使用JSTL的核心标签库,需要在JSP源文件的首部加入如下什么声明语句?()A 〈%@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core %〉B 〈%@ taglib prefix=x uri=http://java.sun.com/jsp/jstl/xml %〉C 〈%@ taglib prefix=fmt uri=http://java.sun.com/jsp/jstl/fmt %〉D 〈%@ taglib prefix=sql uri=http://java.sun.com/jsp/jstl/sql %〉

考题 单选题In your Supportcenter.cn database server the parameter PLSQL_CODE_TYPE has been set to NATIVE. Which object would be achieved by the setting?()A The source PL/SQL code will be stored in native machine code.B The source PL/SQL code will be stored in interpreted byte code.C The compiled PL/SQL code will be stored in native machine code.D The compiled PL/SQL code will be stored in interpreted byte code.

考题 单选题In your Certkiller .com database server the parameter PLSQL_CODE_TYPE has been set to NATIVE. Which object would be achieved by the setting?()A The source PL/SQL code will be stored in native machine code.B The source PL/SQL code will be stored in interpreted byte code.C The compiled PL/SQL code will be stored in native machine code.D The compiled PL/SQL code will be stored in interpreted byte code.

考题 多选题class One {  void foo() {}  }  class Two extends One {   //insert method here  }  Which three methods, inserted individually at line 14, will correctly complete class Two?()Aint foo() { /* more code here */ }Bvoid foo() { /* more code here */ }Cpublic void foo() { /* more code here */ }Dprivate void foo() { /* more code here */ }Eprotected void foo() { /* more code here */ }

考题 多选题31. // some code here  32. try {  33. // some code here  34. } catch (SomeException se) {  35. // some code here  36. } finally {  37. // some code here  38. }  Under which three circumstances will the code on line 37 be executed?()AThe instance gets garbage collected.BThe code on line 33 throws an exception.CThe code on line 35 throws an exception.DThe code on line 31 throws an exception.EThe code on line 33 executes successfully.

考题 多选题Given: Which three methods, inserted individually at line 14, will correctly complete class Two?()Aint foo() { /* more code here */ }Bvoid foo() { /* more code here */ }Cpublic void foo() { /* more code here */ }Dprivate void foo() { /* more code here */ }Eprotected void foo() { /* more code here */ }

考题 单选题Which JSTL code snippet can be used to import content from another web resource?()A c:import url=foo.jsp/B c:import page=foo.jsp/C c:include url=foo.jsp/D c:include page=foo.jsp/

考题 多选题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 used in the tag body.DIt may iterate over a map, but only the key of the mapping may be used in the tag body.EWhen looping over integers (for example begin1=’1’ end=’10’), a loop status object may not be used in the tag body.

考题 多选题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?()AIn the init method.BIn the jspInit method.CIn the constructor of the JSP’s Java code.DIn a JSP declaration, which includes an initializer block.EIn a JSP declaration, which includes a static initializer block.

考题 多选题Which two JSTL URL-related tags perform URL rewriting?()AUrlBLinkCParamDImportERedirect

考题 单选题Given this method in a class:  public String toString() {  StringBuffer buffer = new StringBuffer();  buffer.append(‟‟);  return buffer.toString();  }  Which is true?()A  This code is NOT thread-safe.B  The programmer can replace StringBuffer with StringBuilder with no other changes.C  This code will perform well and converting the code to use StringBuilder will not enhance the performance.D  This code will perform poorly. For better performance, the code should be rewritten: return ““+ this.name + “”;

考题 单选题Which JSTL code snippet can be used to perform URL rewriting?()A a href=’c:url url=foo.jsp/’ /B a href=’c:link url=foo.jsp/’ /C a href=’c:url value=foo.jsp/’ /D a href=’c:link value=foo.jsp/’ /

考题 多选题Which three will compile and run without exception?()Aprivate synchronized Object o;Bvoid go(){   synchronized(){/* code here */}Cpublic synchronized void go(){/* code here */}Dprivate synchronized(this) void go(){/* code here */}Evoid go(){   synchronized(Object.class){/* code here */}Fvoid go(){   Object o = new Object();   synchronized(o){/* code here */}

考题 单选题Which the JSTL code snippet can be used to import content from another web resource?()A  c:import url=*foo.jsp”/ B  c:import page=*foo.jsp”/ C  c:include url=*foo.jsp”/ D  c:include page=*foo.jsp”/ E  Importing cannot be done in JSTL. A standard action must be used instead.

考题 多选题You have been contracted to create a web site for a free dating service. One feature is the ability for oneclient to send a message to another client, which is displayed in the latter client’s private page. Your contract explicitly states that security is a high priority. Therefore, you need to prevent cross-site hacking inwhich one user inserts JavaScript code that is then rendered and invoked when another user views thatcontent. Which two JSTL code snippets will prevent cross site hacking in the scenario above? ()Ac:out${message}/c:outBc:out value=’${message}’ /Cc:out value=’${message}’ escapeXml=’true’ /Dc:out eliminateXml=’true’${message}/c:outEc:out value=’${message}’ eliminateXml=’true’ /

考题 多选题Which two code fragments are most likely to cause a StackOverflowError?()AABBCCDDEEFF