|
by a user interface component. A. Subclassing an adapter is inappropriate in this case. B. The class should implement some listener interface C. A class can implement multiple listener interfaces if desired. D. A subclass of an AWT component cannot listen to its own events. E. When implements listener interface, a class need only provide those handler methods that it chooses.
70.The argument for a class?s main() method is called args, and the class is invoked as follows. java Example cat What would be the effect of trying to access args[0] in the main method? A. The value produced is cat B. The value produced is java C. The value produced is Example D. An object of type NullPointerException is thrown. E. An object of type ArrayIndexOutofBoundsException is thrown. 71. Which best describes the requirements of a fully encapsulated class? A. Mehtods must not be private. B. Variables must not be public. C. The class must be marked final D. Public methods are all marked final. E. Modification of the objects state is only possible using method calls.
72.Which contains objects without ordering, duplication, or any particular lookup/retrieval mechanism? A. Map B. Set C. List D. Collection E. Enumeration
73.What might cause the current thread to stop executing? A. An interrupted exception is thrown. B. The thread execute a sleep() call. C. The thread constructs a new thread D. A thread of higher priority becomes ready E. The thread executes a read() call on InputStream
74.Which statements are true about threads? A. Threads created from the 上一页 [1] [2] [3] [4] 下一页 |
|
|
|
|
|
|
|