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