可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Given that file is&#


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?()  

  • AVector filelist = ((Directory) file).getList();
  • BString[] filelist = file.directory();
  • CEnumeration filelist = file.contents();
  • DString[] filelist = file.list();
  • EVector filelist = (new Directory(file)).files();
参考答案
参考解析:
分类:SCJP程序员认证考试题库