niusouti.com

GiventhatfileisareferencetoaFileobjectthatrepresentsadirectory,whichcodefragmentswillsucceedinobtainingalistoftheentriesinthedirectory?()A.Vectorfilelist=((Directory)file).getList();B.String[]filelist=file.directory();C.Enumerationfilelist=file.contents()

题目
GiventhatfileisareferencetoaFileobjectthatrepresentsadirectory,whichcodefragmentswillsucceedinobtainingalistoftheentriesinthedirectory?()

A.Vectorfilelist=((Directory)file).getList();

B.String[]filelist=file.directory();

C.Enumerationfilelist=file.contents();

D.String[]filelist=file.list();

E.Vectorfilelist=(newDirectory(file)).files();


相似考题