单项选择题X 纠错

A.Vector filelist = ((Directory) file).getList();
B.String[] filelist = file.directory();
C.Enumeration filelist = file.contents();
D.String[] filelist = file.list();
E.Vector filelist = (new Directory(file)).files();

参考答案:
查答案就用赞题库小程序 还有拍照搜题 语音搜题 快来试试吧
无需下载 立即使用

你可能喜欢

填空题

Given the following code, write a line of code that, when inserted at the indicated location, will make the overriding method in Extension invoke the overridden method in class Base on the current object.  
class Base {  
public void print() {  
System.out.println("base");  
}  
}  
class Extention extends Base {  
public void print() {  
System.out.println("extension");  
// insert line of implementation here  
}  
} 
 public class Q294d {  
public static void main(String args[]) {  
Extention ext = new Extention();  
ext.print();  
}  
}  
Fill in a single line of implementation.()

参考答案:super.print();

单项选择题

A.FileOutputStream has no constructors matching the given arguments.
B.An IOExeception will be thrown if a file named "data" already exists.
C.An IOExeception will be thrown if a file named "data" does not already exist.
D.If a file named "data" exists, its contents will be reset and overwritten.
E.If a file named "data" exists, output will be appended to its current contents.

多项选择题

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.

单项选择题

A.Nothing appears in the applet.
B.A button will cover the whole area of the applet.
C.A button will appear in the top left corner of the applet.
D.A button will appear, centered in the top region of the applet.
E.A button will appear in the center of the applet.

单项选择题

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.

多项选择题

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.Instances of class Thread have a method called notify().
B.A call to the method notify() will wake the thread that currently owns the monitor of the object.
C.The method notify() is synchronized.
D.The method notifyAll() is defined in class Thread.
E.When there is more than one thread waiting to obtain the monitor of an object, there is no way to be     sure which thread will be notified by the notify() method.

赞题库

赞题库-搜题找答案

(已有500万+用户使用)


  • 历年真题

  • 章节练习

  • 每日一练

  • 高频考题

  • 错题收藏

  • 在线模考

  • 提分密卷

  • 模拟试题

无需下载 立即使用

版权所有©考试资料网(ppkao.com)All Rights Reserved