监听事件和处理事件()A、都由Listener完成B、由Listener和窗口分别完成C、由Listener和构件分别完成D、都由相应事件Listener处登记过的构件完成
监听事件和处理事件()
- A、都由Listener完成
- B、由Listener和窗口分别完成
- C、由Listener和构件分别完成
- D、都由相应事件Listener处登记过的构件完成
相关考题:
请完成下列Java程序。实例listener是监听器,frm是事件源,fr上发生的事件委托tat进行处理。程序的执行结果是显示一个蓝色的窗口,单击关闭按钮,可关闭窗口。注意:请勿改动main()主方法和其他已有的语句内容,仅在下划线处填入适当的语句。源程序文件代码清单如下:import java.awt.*;import java.awt.event.*;public class BlueWindow{public static void main(String args[]){Frame. frm=new Frame. ("欢迎参加Java考试!");TheAdapterTest listener=new TheAdapterTest();frm. ______;frm.setSize(200,200);frm.setBackground(Color.blue);frm. ______;}}class TheAdapterTest extends WindowAdapter{public void windowClosing(WindowEvent e){System.exit(1);}}
Your database is open and the LISTENER listener running. You stopped the wrong listener LISTENER byissuing the following command:lsnrctl >STOPWhat happens to the sessions that are presently connected to the database Instance?()A. They are able to perform only queries.B. They are not affected and continue to function normally.C. They are terminated and the active transactions are rolled back.D. They are not allowed to perform any operations until the listener LISTENER is started
通常我们使用( )方法来为一个部件注册事件监听器。A.add×××ListenerB.×××ListenerSX 通常我们使用( )方法来为一个部件注册事件监听器。A.add×××ListenerB.×××ListenerC.Listener×××D.×××Listeneradd
客户端用于网络连接的两个配置文件文件是() A.TNSNAMES.ORA和SQLNET.ORAB.TNSNAMES.ORA和LISTENER.ORAC.TNSNAMES.ORA和INIT.ORAD.SQLNET.ORA和LISTENER.ORAE.INIT.ORA和LISTENER.ORA
You work as a database administrator for Supportcenter.cn. You are working on Oracle Database 10g. To forward client connections to an instance, the listener must know information such as the name of the instance and where the instance’s ORACLE_HOME is located. How does the listener get this information?()A、It gets it from the parameter file.B、The listener prompts for details on startup.C、The listener gathers information from the control file.D、The instance automatically registers with the default listener.E、The listener gets this information through thelistener.orafile.
所有AbstractButton组件都实现了()A、Action Listener 接口B、Serializable Listener 接口C、Change Listener 接口D、Item Listener 接口
以下()有关事件监听器的语句是正确的。A、Multiple listeners can be attached to one componentB、Only one listener can be attached to one componentC、One listener can receive and process the events from multiple componentsD、One listener can receive and process the events from only one component
You work as a database administrator for Supportcenter.cn. When you tried to connect to the database, you received the following error: ERROR: ORA-12541:TNS:no_listener You found that the listener is not running on the server, so you issued the following command in the Listener Control utility to start the listener. lsnrctlSTART What statement is true?()A、It would attempt to start the default listenerB、It would start the most recently created listener.C、It would display an error with a message asking for the listener name to be specified.D、It would show you a list of listeners and prompts for the listener name that you want to start.
You were recently hired by Certkiller .com as a database administrator. You are asked to find out whether the currently functional listener process, named L1, has been password protected or not. You are not familiar with the file system of the new organization. How would you accomplish the task?()A、 by using the STATUS command of the Listener control utilityB、 by using the STATUS L1 command of the Listener control utilityC、 by using the SHOW RULES command of the Listener control utilityD、 by using the SET PASSWORD command of the Listener control utilityE、 by searching for the PASSWORD_LISTENER entry in the listener.ora file
You want your listener to be password protected to prevent it from being shut down. You want to accomplish this task while the listener is functional. Which method could you use to achieve this objective?()A、 Use the CHANGE_PASSWORD command of the Listener control utility.B、 Use the SET PASSWORD and SAVE_CONFIG commands of the Listener control utility.C、 Use the CHANGE_PASSWORD and SAVE_CONFIG commands of the Listener control utility.D、 Manually modify the listener.ora file to include the password for the listener and restart the listener.
客户端用于网络连接的两个配置文件文件是()A、TNSNAMES.ORA和SQLNET.ORAB、TNSNAMES.ORA和LISTENER.ORAC、TNSNAMES.ORA和INIT.ORAD、SQLNET.ORA和LISTENER.ORAE、INIT.ORA和LISTENER.ORA
Anyone who knows just the host name and the listener name can have full control over the listener. They can stop the listener and also obtain detailed information about the listener, database, and the configuration of the application. How would you avoid this scenario?()A、lock the listenerB、hide the listenerC、create multiple listenersD、run listener on a remote clientE、set a password for the listenerF、store listener.ora in a non-default location
You issue these LSNRCTL commands: LSNRCTL SET CURRENT_LISTENER listener01 LSNRCTL START listener02 What is the result of issuing these commands?()A、A listener named LISTENER is started.B、A listener named LISTENER01 is started.C、A listener named LISTENER02 is started.D、The START command fails and no listener is started.
单选题通常,一个Web服务可以分为4个逻辑层,分别为数据层(Data Layer)、数据访问层(Data Access Layer)、业务层(Business Layer)和监听者(Listener)。离客户端最近的是监听者,离客户最远的是()。A数据层(Data Layer)B数据访问层(Data Access Layer)C业务层(Business Layer)D监听者(Listener)
单选题Anyone who knows just the host name and the listener name can have full control over the listener. They can stop the listener and also obtain detailed information about the listener, database, and the configuration of the application. How would you avoid this scenario?()Alock the listenerBhide the listenerCcreate multiple listenersDrun listener on a remote clientEset a password for the listenerFstore listener.ora in a non-default location
单选题You issue these LSNRCTL commands: LSNRCTL SET CURRENT_LISTENER listener01 LSNRCTL START listener02 What is the result of issuing these commands?()AA listener named LISTENER is started.BA listener named LISTENER01 is started.CA listener named LISTENER02 is started.DThe START command fails and no listener is started.
单选题所有AbstractButton组件都实现了()AAction Listener 接口BSerializable Listener 接口CChange Listener 接口DItem Listener 接口
单选题You want your listener to be password protected to prevent it from being shut down. You want to accomplish this task while the listener is functional. Which method could you use to achieve this objective?()A Use the CHANGE_PASSWORD command of the Listener control utility.B Use the SET PASSWORD and SAVE_CONFIG commands of the Listener control utility.C Use the CHANGE_PASSWORD and SAVE_CONFIG commands of the Listener control utility.D Manually modify the listener.ora file to include the password for the listener and restart the listener.