SCWCD(310-083)

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

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

第1题:

Which statement is true about assertion in the Java programming language?()  

  • A、 Assertion expressions should not contain side effects.
  • B、 Assertion expression values can be any primitive type.
  • C、 Assertion should be used for enforcing preconditions on public methods.
  • D、 An AssertionError thrown as a result of a failed assertion should always be handled by the enclosing method.

正确答案:A

第2题:

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

第3题:

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 method1 in class A is not required to be caught.

C.The method declared on line 31 must be declared to throw a RuntimeException.

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


参考答案:B

第4题:

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

第5题:

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

第6题:

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.

正确答案:A,C

第7题:

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

第8题:

Evaluate the set of SQL statements:What is true about the set?()

A. The DESCRIBE DEPT statement displays the structure of the DEPT table.

B. The ROLLBACK statement frees the storage space occupies by the DEPT table.

C. The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist.

D. The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement.


参考答案:A

第9题:

Given that b and c refer to instances of wrapper classes, which two statements are true?()

  • A、 b.equals(b) returns true.
  • B、 b.equals(c) returns the same result as b == c.
  • C、 b.eqials(c) can return false even if c.equals(b) returns true.
  • D、 b.equals(c) throws an exception if b and c are different wrapper types.
  • E、 b.equals(c) returns false if the type of wrapper objects being compared are different.

正确答案:B,C

第10题:

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

更多相关问题