SCJP程序员认证考试

单选题How can you create a listener class that receives events when the mouse is moved?()ABy extending MouseListener.BBy implementing MouseListener.CBy extending MouseMotionListener.DBy implementing MouseMotionListener.EEither by extending MouseMotionListene

题目
单选题
How can you create a listener class that receives events when the mouse is moved?()
A

 By extending MouseListener.

B

 By implementing MouseListener.

C

 By extending MouseMotionListener.

D

 By implementing MouseMotionListener.

E

 Either by extending MouseMotionListener or extending MouseListener.

F

 Either by implementing MouseMotion Listener or implementing MouseListener.

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

第1题:

What is one function of MBGP?()

A. extending IPSec tunnels

B. carrying multiple address families

C. propagating DVMRP routing information

D. extending Autonomous System GRE tunnels


参考答案:B

第2题:

Metaphor is a way of talking about one thing in terms of another. It is a device for creating and extending meaning.()


正确答案:正确

第3题:

Using the figure in the Special window, By how many weeks can activity "F" slip without extending the end date of the project?

A . 0

B . 1

C . 2

D . 3

E . 4


正确答案:D

第4题:

The deck extending from bow to stern is called the().

  • A、main deck
  • B、superstructure
  • C、frame
  • D、forecastle deck

正确答案:A

第5题:

A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()

  • A、Include a listener directive in a JSP page
  • B、configure a listener in the TLD file using the  element
  • C、Include a  element in the web application deployment descriptor
  • D、configure a listener in the application deployment descriptor, using the  element
  • E、Include a class implementing ServletContextListener as part of the web application deploymen

正确答案:D,E

第6题:

A inflating B expanding C increasing D extending


正确答案:C

第7题:

Which two tasks can be performed when WLST is in OFFLINE mode?()

  • A、modifying the configuration of an online domain
  • B、modifying the configuration of an offline domain
  • C、viewing runtime performance data in ONLINE mode
  • D、viewing runtime performance data in OFFLINE mode
  • E、creating and extending domains

正确答案:B,E

第8题:

111 Using the figure in the Special window, By how many weeks can activity "F" slip without extending the end date of the project?

A. 0

B. 1

C. 2

D. 3

E. 4


正确答案:D

第9题:

Your web application requires the adding and deleting of many session attributes during a complex usecase. A bug report has come in that indicates that an important session attribute is being deleted too soonand a NullPointerException is being thrown several interactions after the fact. You have decided to create asession event listener that will log when attributes are being deleted so you can track down when theattribute is erroneously being deleted. Which listener class will accomplish this debugging goal?()

  • A、Create an HttpSessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getName method on the event object.
  • B、Create an HttpSessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getName method on the event object.
  • C、Create an SessionAttributeListener class and implement the attributeRemoved method and log the attribute name using the getAttributeName method on the event object.
  • D、Create an SessionAttributeListener class and implement the attributeDeleted method and log the attribute name using the getAttributeName method on the event object.

正确答案:B

第10题:

When implementing 802.1X on Teleworker routers and using separate DHCP address pools for Teleworker and Home-user devices, traffic between devices can be restricted. How can you best accomplish this?()

  • A、Access Lists between the inside interface and loopback interface
  • B、Context Based Access Control
  • C、Dynamic Host Configuration Protocol
  • D、Network Address translation

正确答案:A

更多相关问题