单选题Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()A The tag handler must implement BodyTag.B The doAfterBody method is NOT called.C The setBodyContent method is called once.D It is never legal to return EVAL_BODY_BUFFERED fr

题目
单选题
Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()
A

The tag handler must implement BodyTag.

B

The doAfterBody method is NOT called.

C

The setBodyContent method is called once.

D

It is never legal to return EVAL_BODY_BUFFERED from doStartTag.


相似考题
更多“单选题Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()A The tag handler must implement BodyTag.B The doAfterBody method is NOT called.C The setBodyContent method is called once.D It is never legal to return EVAL_BODY_BUFFERED fr”相关问题
  • 第1题:

    Under what two circumstances is the set JspBody method NOT called in a tag class that implements the Simple Tag interface? ()

    • A、 The tag is invoked without a body.
    • B、 The doTAb method throws an exception.
    • C、 The  element has the value empty.
    • D、 The tag is called with the attribute skip-body=true

    正确答案:A,C

  • 第2题:

    Under which circumstances will a thread stop?()  

    • A、The method waitforId() in class MediaTracker is called.
    • B、The run() method that the thread is executing ends.
    • C、The call to the start() method of the Thread object returns.
    • D、The suspend() method is called on the Thread object.
    • E、The wait() method is called on the Thread object.

    正确答案:B

  • 第3题:

    Which of the following statements are true?() 

    • A、 The equals() method determines if reference values refer to the same object.
    • B、 The == operator determines if the contents and type of two separate objects match.
    • C、 The equals() method returns true only when the contents of two objects match.
    • D、 The class File overrides equals() to return true if the contents and type of two separate objects        match.

    正确答案:A,D

  • 第4题:

    Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()

    • A、It can be invoked only from the doGet or doPost methods.
    • B、It can be used independently of the getRemoteUser method.
    • C、Can return "true" even when its argument is NOT defined as a valid role name in the deployment descriptor.
    • D、Using the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.

    正确答案:B,C

  • 第5题:

    Which statement is true?()

    • A、A class’s finalize() method CANNOT be invoked explicitly.
    • B、super.finalize() is called implicitly by any overriding finalize() method.
    • C、The finalize() method for a given object is called no more than once by the garbage collector.
    • D、The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.

    正确答案:C

  • 第6题:

    多选题
    Which three are true about servlet filters?()
    A

    A filter must implement the destroy method.

    B

    A filter must implement the doFilter method.

    C

    A servlet may have multiple filters associated with it.

    D

    A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.

    E

    A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.


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

  • 第7题:

    单选题
    Which statement is true?()
    A

    A class’s finalize() method CANNOT be invoked explicitly.

    B

    super.finalize() is called implicitly by any overriding finalize() method.

    C

    The finalize() method for a given object is called no more than once by the garbage collector.

    D

    The order in which finalize() is called on two objects is based on the order in which the two objects became finalizable.


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

  • 第8题:

    单选题
    Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()
    A

     The tag handler must extend body Tag.

    B

     The do After Body method is NOT called.

    C

     The set Body Content method is called.

    D

     It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.


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

  • 第9题:

    单选题
    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.


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

  • 第10题:

    单选题
    You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()
    A

    The method must return a type of either IEnumerator or IEnumerable.

    B

    The method must return a type of IComparable.

    C

    The method must explicitly contain a collection.

    D

    The method must be the only iterator in the class.


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

  • 第11题:

    多选题
    Under what two circumstances is the set JspBody method NOT called in a tag class that implements the Simple Tag interface? ()
    A

    The tag is invoked without a body.

    B

    The doTAb method throws an exception.

    C

    The  element has the value empty.

    D

    The tag is called with the attribute skip-body=true


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

  • 第12题:

    多选题
    Which two statements are true about using the isUserInRole method to implement security in a Java EEapplication?()
    A

    It can be invoked only from the doGet or doPost methods.

    B

    It can be used independently of the getRemoteUser method.

    C

    Can return true even when its argument is NOT defined as a valid role name in the deployment descriptor.

    D

    Using the isUserInRole method overrides any declarative authentication related to the method in which it is invoked.


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

  • 第13题:

    Which statement is true if the do Start Tag method returns EVAL_BODY_BUFFERED?()

    • A、 The tag handler must extend body Tag.
    • B、 The do After Body method is NOT called.
    • C、 The set Body Content method is called.
    • D、 It is never legal to return EVAL_BODY_BUFFERED from do Start Tag.

    正确答案:C

  • 第14题:

    Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()

    • A、The tag handler must implement BodyTag.
    • B、The doAfterBody method is NOT called.
    • C、The setBodyContent method is called once.
    • D、It is never legal to return EVAL_BODY_BUFFERED from doStartTag.

    正确答案:C

  • 第15题:

    Which three are true about servlet filters?()

    • A、A filter must implement the destroy method.
    • B、A filter must implement the doFilter method.
    • C、A servlet may have multiple filters associated with it.
    • D、A servlet that is to have a filter applied to it must implement the javax.servlet.FilterChain interface.
    • E、A filter that is part of a filter chain passes control to the next filter in the chain by invoking the FilterChain.forward method.

    正确答案:A,B,C

  • 第16题:

    You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true?()

    • A、Your filter class must implement an init method and a destroy method.
    • B、Your filter class must also implement javax.servlet.FilterChain.
    • C、When your filter chains to the next filter, it should pass the same arguments it received in its doFiltermethod.
    • D、The method that your filter invokes on the object it received that implements javax.servlet.FilterChaincan invoke either another filter or a servlet.
    • E、Your filter class must implement a doFilter method that takes, among other things, anHTTPServletRequest object and an HTTPServletResponse object.

    正确答案:A,D

  • 第17题:

    You are developing a custom-collection class.You need to create a method in your class. You need to ensure that the method you create in your class returns a type that is compatible with the Foreach statement. Which criterion should the method meet?()

    • A、The method must return a type of either IEnumerator or IEnumerable.
    • B、The method must return a type of IComparable.
    • C、The method must explicitly contain a collection.
    • D、The method must be the only iterator in the class.

    正确答案:A

  • 第18题:

    单选题
    Under which circumstances will a thread stop?()
    A

    The method waitforId() in class MediaTracker is called.

    B

    The run() method that the thread is executing ends.

    C

    The call to the start() method of the Thread object returns.

    D

    The suspend() method is called on the Thread object.

    E

    The wait() method is called on the Thread object.


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

  • 第19题:

    单选题
    Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED?()
    A

    The tag handler must implement BodyTag.

    B

    The doAfterBody method is NOT called.

    C

    The setBodyContent method is called once.

    D

    It is never legal to return EVAL_BODY_BUFFERED from doStartTag.


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

  • 第20题:

    多选题
    A custom JSP tag must be able to support an arbitrary number of attributes whose names are unknown when the tag class is designed.  Which two are true? ()
    A

    A  element in the echo tag LTD must have the value JSP

    B

    The echo tag handler must define the setAttribute (String key, String value) method

    C

    The true element must appear in the echo tag TLD

    D

    The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.IterationTag interface

    E

    The class implementing the echo tag handler must implement the javax.sevlet.jsp.tagext.DynamicAttributes interface


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

  • 第21题:

    单选题
    Click the Exhibit button. Given: Which statement is true if a TestException is thrown on line 3 of class B?()
    A

    Line 33 must be called within a try block.

    B

    The exception thrown by method 1 in class A is not required to be caught.

    C

    The method declared on line 31 must be declared to throw a runtime exception.

    D

    On line 5 of class A,the call to method 2 of class B does not need to be placed in a try catch block.


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

  • 第22题:

    多选题
    Which two are true about the tag handler referneed by my Tag. ()
    A

    The do Start Tag method is called once.

    B

    The do After Body method is NOT called.

    C

    The EVAL_Page constant is a valid return value for the do End Tag Method.

    D

    the EVAL_BODY_BUFFERED constant is a valid return value for the do Start Tag method.


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

  • 第23题:

    多选题
    Given: 6. 7. 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.


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

  • 第24题:

    多选题
    Given: 6. 7. 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.


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