Given: 6. 7.<%="processing" %> 8. and a custom tag handler for foo which extends TagSupport. Which two are true about thetag handler referenced by foo?()A、The doStartTag method is called once.B、The doAfterBody method is NOT called.C、The EVAL_PAGE constan

题目

Given: 6. 7.<%="processing" %> 8. and a custom tag handler for foo which extends TagSupport. Which two are true about thetag handler referenced by foo?()

  • A、The doStartTag method is called once.
  • B、The doAfterBody method is NOT called.
  • C、The EVAL_PAGE constant is a valid return value for the doEndTag method.
  • D、The SKIP_PAGE constant is a valid return value for the doStartTag method.
  • E、The EVAL_BODY_BUFFERED constant is a valid return value for the doStartTag method.

相似考题
更多“Given: 6.<myTag:foo bar=&r”相关问题
  • 第1题:

    Click the Exhibit button. Given the fully-qualified class names: com.foo.bar.Dog com.foo.bar.blatz.Book com.bar.Car com.bar.blatz.Sun Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM? ()

    A.Jar A

    B.Jar B

    C.Jar C

    D.Jar D

    E.Jar E


    参考答案:A

  • 第2题:

    Given:fooandbararepublicreferencesavailabletomanyotherthreads.fooreferstoaThreadandbarisanObject.Thethreadfooiscurrentlyexecutingbar.wait().Fromanotherthread,whatprovidesthemostreliablewaytoensurethatfoowillstopexecutingwait()?

    A.foo.notify();

    B.bar.notify();

    C.foo.notifyAll();

    D.Thread.notify();

    E.bar.notifyAll();


    参考答案:E

  • 第3题:

    You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?()

    • A、 foo and bar would both be removed.
    • B、 foo would be removed while bar would remain accessible.
    • C、 foo would be removed, bar would still exist but would be unusable.
    • D、 Both foo and bar would remain accessible.
    • E、 You would be asked whether bar should be removed.

    正确答案:B

  • 第4题:

    Given:  foo and bar are public references available to many other threads, foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait().  From another thread, what provides the most reliable way to ensure that foo will stop executing wait()?()

    • A、foo.notify();
    • B、bar.notify();
    • C、foo.notifyAll();
    • D、Thread.notify();
    • E、bar.notifyAll();
    • F、Object.notify();

    正确答案:E

  • 第5题:

    A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page?()

    • A、<prefix:myTag a="foo" b="bar" c="baz" />
    • B、<prefix:myTag attributes={"foo","bar","baz"} />
    • C、<prefix:myTag jsp:attribute a="foo" b="bar" c="baz" />
    • D、<prefix:myTag><jsp:attribute name="a">foo</jsp:attribute><jsp:attribute name="b">bar</jsp:attribute><jsp:attribute name="c">baz</jsp:attribute>. </prefix:myTag>

    正确答案:A,B,D

  • 第6题:

    foo and bar are public references available to many other threads. foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait(). From another thread, which statement is the most reliable way to ensue that foo will stop executing wait()? 

    • A、 foo.notify();
    • B、 bar.notify();
    • C、 foo.notifyAll();
    • D、 Thread.notify();
    • E、 bar.notiFYAll();
    • F、 Object.notify();

    正确答案:E

  • 第7题:

    Given: foo and bar are public references available to many other threads. foo refers to a Thread and bar is anObject.  The thread foo is currently executing bar.wait().  From another thread,what provides the most reliable wayto ensure that foo will stop executing wait()?

    • A、foo.notify();
    • B、bar.notify();
    • C、foo.notifyAll();
    • D、Thread.notify();
    • E、bar.notifyAll();

    正确答案:E

  • 第8题:

    多选题
    A custom tag is defined to take three attributes. Which two correctly invoke the tag within a JSP page?()
    A

    <prefix:myTag a=foo b=bar c=baz />

    B

    <prefix:myTag attributes={foo,bar,baz} />

    C

    <prefix:myTag jsp:attribute a=foo b=bar c=baz />

    D

    <prefix:myTag><jsp:attribute name=a>foo</jsp:attribute><jsp:attribute name=b>bar</jsp:attribute><jsp:attribute name=c>baz</jsp:attribute>. </prefix:myTag>


    正确答案: A,C
    解析: 暂无解析

  • 第9题:

    单选题
    10. interface Foo { int bar(); }  11. public class Sprite {  12. public int fubar( Foo foo) { return foo.bar(); }  13. public void testFoo() {  14. fubar(  15. // insert code here  16.);  17. }  18. }  Which code, inserted at line 15, allows the class Sprite to compile?()
    A

     Foo { public int bar() { return 1; } }

    B

     new Foo { public int bar() { return 1; } }

    C

     newFoo() { public int bar(){return 1; } }

    D

     new class Foo { public int bar() { return 1; } }


    正确答案: A
    解析: 暂无解析

  • 第10题:

    单选题
    You have read/write permission on an ordinary file foo. You have just run In foo bar. What would happen if you ran rm foo?()
    A

     foo and bar would both be removed.

    B

     foo would be removed while bar would remain accessible.

    C

     foo would be removed, bar would still exist but would be unusable.

    D

     Both foo and bar would remain accessible.

    E

     You would be asked whether bar should be removed.


    正确答案: E
    解析: 暂无解析

  • 第11题:

    单选题
    Given: foo and bar are public references available to many other threads. foo refers to a Thread and bar is anObject.  The thread foo is currently executing bar.wait().  From another thread,what provides the most reliable wayto ensure that foo will stop executing wait()?
    A

    foo.notify();

    B

    bar.notify();

    C

    foo.notifyAll();

    D

    Thread.notify();

    E

    bar.notifyAll();


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    Given the JSP code: and the Classic tag handler code: 5. public int doStartTag() throws JspException { 6. // insert code here 7. // return int 8. } Assume there are no other "foo" attributes in the web application. Which invocation on the pageContextobject,inserted at line 6,assigns "bar" to the variable x?()
    A

    String x = (String) pageContext.getAttribute(foo)

    B

    String x = (String) pageContext.getRequestScope(foo)

    C

    It is NOT possible to access the pageContext object from within doStartTag

    D

    String x = (String) pageContext.getRequest().getAttribute(foo)

    E

    String x = (String) pageContext.getAttribute(foo, PageContext.ANY_SCOPE)


    正确答案: D
    解析: 暂无解析

  • 第13题:

    Given:Which code, inserted at line 15, allows the class Sprite to compile?()

    A.Foo { public int bar() { return 1; }

    B.new Foo { public int bar() { return 1; }

    C.new Foo() { public int bar() { return 1; }

    D.new class Foo { public int bar() { return 1; }


    参考答案:C

  • 第14题:

    Given: 6.<% int[] nums = {42, 420, 4200}; 7.request.setAttribute("foo", nums); %> Which two successfully translate and result in a value of true?()

    • A、${true or false}
    • B、${requestScope[foo][0] > 500}
    • C、${requestScope[’foo’][1] = 420}
    • D、${(requestScope[’foo’][0] lt 50) && (3 gt 2)}

    正确答案:A,D

  • 第15题:

    Which code determines the int value foo closest to a double value bar?()  

    • A、 Int foo = (int) Math.max(bar);
    • B、 Int foo = (int) Math.min(bar);
    • C、 Int foo = (int) Math.abs(bar);
    • D、 Int foo = (int) Math.ceil(bar);
    • E、 Int foo = (int) Math.floor(bar);
    • F、 Int foo = (int) Math.round(bar);

    正确答案:F

  • 第16题:

    Which statements concerning the relationships between the following classes are true?()   class Foo {  int num;   Baz comp = new Baz();   }   class Bar {  boolean flag;   }   class Baz extends Foo {   Bar thing = new Bar();   double limit;   }  

    • A、A Bar is a Baz.
    • B、A Foo has a Bar.
    • C、A Baz is a Foo.
    • D、A Foo is a Baz.
    • E、A Baz has a Bar.

    正确答案:C,E

  • 第17题:

    Given the JSP code: <% request.setAttribute("foo", "bar"); %>and the Classic tag handler code: 5. public int doStartTag() throws JspException { 6. // insert code here 7. // return int 8. } Assume there are no other "foo" attributes in the web application. Which invocation on the pageContextobject,inserted at line 6,assigns "bar" to the variable x?()

    • A、String x = (String) pageContext.getAttribute("foo")
    • B、String x = (String) pageContext.getRequestScope("foo")
    • C、It is NOT possible to access the pageContext object from within doStartTag
    • D、String x = (String) pageContext.getRequest().getAttribute("foo")
    • E、String x = (String) pageContext.getAttribute("foo", PageContext.ANY_SCOPE)

    正确答案:D

  • 第18题:

    Given the fully-qualified class names:  com.foo.bar.Dog  com.foo.bar.blatz.Book  com.bar.Car  com.bar.blatz.Sun  Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JYM?() 

    • A、 Jar A
    • B、 Jar B
    • C、 Jar C
    • D、 Jar D
    • E、 Jar E

    正确答案:A

  • 第19题:

    多选题
    Which statements concerning the relationships between the following classes are true?()   class Foo {  int num;   Baz comp = new Baz();   }   class Bar {  boolean flag;   }   class Baz extends Foo {   Bar thing = new Bar();   double limit;   }
    A

    A Bar is a Baz.

    B

    A Foo has a Bar.

    C

    A Baz is a Foo.

    D

    A Foo is a Baz.

    E

    A Baz has a Bar.


    正确答案: D,A
    解析: 暂无解析

  • 第20题:

    单选题
    Which code determines the int value foo closest to, but not greater than, a double value bar?()
    A

     Int foo = (int) Math.max(bar);

    B

     Int foo = (int) Math.min(bar);

    C

     Int foo = (int) Math.abs(bar);

    D

     Int foo = (int) Math.ceil(bar);

    E

     Int foo = (int) Math.floor(bar);

    F

     Int foo = (int) Math.round(bar);


    正确答案: F
    解析: 暂无解析

  • 第21题:

    单选题
    Given the fully-qualified class names:  com.foo.bar.Dog  com.foo.bar.blatz.Book  com.bar.Car  com.bar.blatz.Sun  Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JYM?()
    A

     Jar A

    B

     Jar B

    C

     Jar C

    D

     Jar D

    E

     Jar E


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    Given:  foo and bar are public references available to many other threads, foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait().  From another thread, what provides the most reliable way to ensure that foo will stop executing wait()?()
    A

    foo.notify();

    B

    bar.notify();

    C

    foo.notifyAll();

    D

    Thread.notify();

    E

    bar.notifyAll();

    F

    Object.notify();


    正确答案: C
    解析: 暂无解析

  • 第23题:

    单选题
    foo and bar are public references available to many other threads. foo refers to a Thread and bar is an Object. The thread foo is currently executing bar.wait(). From another thread, which statement is the most reliable way to ensue that foo will stop executing wait()?
    A

     foo.notify();

    B

     bar.notify();

    C

     foo.notifyAll();

    D

     Thread.notify();

    E

     bar.notiFYAll();

    F

     Object.notify();


    正确答案: C
    解析: 暂无解析

  • 第24题:

    多选题
    Given: 6. Which two successfully translate and result in a value of true?()
    A

    ${true or false}

    B

    ${requestScope[foo][0] > 500}

    C

    ${requestScope[’foo’][1] = 420}

    D

    ${(requestScope[’foo’][0] lt 50) && (3 gt 2)}


    正确答案: A,D
    解析: 暂无解析