试题详情
- 单项选择题Given that file is a reference to a File object that represents a directory, which code fragments will succeed in obtaining a list of the entries in the directory?()
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();
- D
关注下方微信公众号,在线模考后查看
热门试题
- 建立Sochet类的服务器端需要哪些步骤
- What is th
- 下面关于abstract关键字描述错误的
- Which statement
- 现有: int
- For which̳
- 下列有关类声明的代码片段,哪一项是正确的
- What is th
- 类Student的声明如下:&ensp
- 如果一个方法或变量是"private"访
- public class&e
- When adding
- 1.public class GC{
- class BaseClas
- What is th
- 下面有关JAVA异常类的描述,说法错误的
- Which two̳
- You need
- 下列哪些方法是在编译时刻绑定的?()
- 有哺乳动物类mammal,将其作为父类,