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

时间:2022-10-06 22:42:25 所属题库:SCJP程序员认证考试题库

相似题目