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();
查看答案
Whichstatementsconcerningtheswitchconstructaretrue?()
Allswitchstatementsmusthaveadefaultlabel.
B. Theremustbeexactlyonelabelforeachcodesegmentinaswitchstatement.
C. Thekeywordcontinuecanneveroccurwithinthebodyofaswitchstatement.
D. Nocaselabelmayfollowadefaultlabelwithinasingleswitchstatement.
E. Acharacterliteralcanbeusedasavalueforacaselabel.
心理健康状态是指个体的认知、情绪、态度和行为功能良好的心理状态。()
思维通常包括动作思维、逻辑思维、创造性思维和()。
A. 发散性思维
B. 逆向思维
C. 形象思维
D. 习惯思维
Giventwocollectionobjectsreferencedbycol1andcol2,whichofthesestatementsaretrue?()
A. Theoperationcol1.retainAll(col2)willnotmodifythecol1object.
B. Theoperationcol1.removeAll(col2)willnotmodifythecol2object.
C. Theoperationcol1.addAll(col2)willreturnanewcollectionobject,containingelementsfrombothcol1 andcol2.
D. Theoperationcol1.containsAll(Col2)willnotmodifythecol1object.