Which statements concerning the event model of the AWT are true?()  A、At most one listener of each type can be registered with a component.B、Mouse motion listeners can be registered on a List instance.C、There exists a class named ContainerEvent in package

题目

Which statements concerning the event model of the AWT are true?()  

  • A、At most one listener of each type can be registered with a component.
  • B、Mouse motion listeners can be registered on a List instance.
  • C、There exists a class named ContainerEvent in package java.awt.event.
  • D、There exists a class named MouseMotionEvent in package java.awt.event.
  • E、There exists a class named ActionAdapter in package java.awt.event.
参考答案和解析
正确答案:B,C
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Which statements concerning the switch construct are true?()  

  • A、All switch statements must have a default label.
  • B、There must be exactly one label for each code segment in a switch statement.
  • C、The keyword continue can never occur within the body of a switch statement.
  • D、No case label may follow a default label within a single switch statement.
  • E、A character literal can be used as a value for a case label.

正确答案:E

第2题:

Which two statements are true?()

  • A、 An inner class may be declared as static.
  • B、 An anonymous inner class can be declared as public.
  • C、 An anonymous inner class can be declared as private.
  • D、 An anonymous inner class can extend an abstract class.
  • E、 An anonymous inner class can be declared as protected.

正确答案:A,D

第3题:

Which two statements are true about a job chain? ()(Choose two.)

A. A job chain can contain a nested chain of jobs.

B. The jobs in a job chain cannot have more than one dependency.

C. A job of the CHAIN type can be run using event-based or time-based schedules.

D. The jobs in a job chain can be executed only by using the events generated by the Scheduler


参考答案:A, C

第4题:

For which three events can web application event listeners be registered?()

  • A、When a session is created
  • B、After a servlet is destroyed
  • C、When a session has timed out
  • D、When a cookie has been created
  • E、When a servlet has forwarded a request
  • F、When a session attribute value is changed

正确答案:A,C,F

第5题:

以下()有关事件监听器的语句是正确的。

  • A、Multiple listeners can be attached to one component
  • B、Only one listener can be attached to one component
  • C、One listener can receive and process the events from multiple components
  • D、One listener can receive and process the events from only one component

正确答案:A,C

第6题:

Which statements concerning the correlation between the inner and outer instances of non-static inner classes are true?()  

  • A、Member variables of the outer instance are always accessible to inner instances, regardless of their      accessibility modifiers.
  • B、Member variables of the outer instance can never be referred to using only the variable name within     the inner instance.
  • C、More than one inner instance can be associated with the same outer instance.
  • D、All variables from the outer instance that should be accessible in the inner instance must be declared     final.
  • E、A class that is declared final cannot have any inner classes.

正确答案:A,C

第7题:

package foo;  public class Outer {  public static class Inner {  }  }   Which statement is true?() 

  • A、 Compilation fails.
  • B、 An instance of the Inner class can be constructed with “new Outer.Inner()”.
  • C、 An instance of the Inner class cannot be constructed outside of package foo.
  • D、 An instance of the Inner class can be constructed only from within the Outer class.
  • E、 From within the package foo, and instance of the Inner class can be constructed with “new Inner()”.

正确答案:B

第8题:

Given:Which statement is true about the class of an object that can reference the variable base? ()

A.It can be any class.

B.No class has access to base.

C.The class must belong to the geometry package.

D.The class must be a subclass of the class Hypotenuse.


参考答案:C

第9题:

package foo; public class Outer (  public static class Inner (  )  )   Which statement is true? () 

  • A、 An instance of the Inner class can be constructed with “new Outer.Inner ()”
  • B、 An instance of the inner class cannot be constructed outside of package foo.
  • C、 An instance of the inner class can only be constructed from within the outer class.
  • D、 From within the package bar, an instance of the inner class can be constructed with “new inner()”

正确答案:A

第10题:

Which  statements are true regarding listeners()

  • A、Listeners use only the TCP/IP protocol.
  • B、Multiple listener processes can run simultaneously on a host.
  • C、Multiple database instances can be registered with a single listener.
  • D、The listener-related errors can be traced only at the administrative level.
  • E、Only one database instance can be registered with a single listener at any time

正确答案:B,C

更多相关问题