Giventwocollectionobjectsreferencedbycol1andcol2,whichofthesestatementsaretrue?()
A. Theoperationcol1.retainAll(col2)willnotmodifythecol1object.
B. Theoperationcol1.removeAll(col2)willnotmodifythecol2object.
C. Theoperationcol1.addAll(col2)willreturnanewcollectionobject,containingelementsfrombothcol1 andcol2.
D. Theoperationcol1.containsAll(Col2)willnotmodifythecol1object.
查看答案
Whichstatementsconcerningtheeffectofthestatementgfx.drawRect(5,5,10,10)aretrue,giventhatgfxisareferencetoavalidGraphicsobject?()
A. Therectangledrawnwillhaveatotalwidthof5pixels.
B. Therectangledrawnwillhaveatotalheightof6pixels.
C. Therectangledrawnwillhaveatotalwidthof10pixels.
D. Therectangledrawnwillhaveatotalheightof11pixels.
各级公务员要从()的高度,坚持学习,把学习贯穿于自己的整个生命旅途,努力成为终身学习的楷模。
A. 对党的事业和人民的利益负责
B. 从巩固党的执政之基和提高党的执政能力和水平
C. 从不断提高自身修养
D. 从提高政治文明
Whichstatementsconcerningthevalueofamembervariablearetrue,whennoexplicitassignmentshavebeenmade?()
A. Thevalueofanintisundetermined.
B. Thevalueofallnumerictypesiszero.
C. Thecompilermayissueanerrorifthevariableisusedbeforeitisinitialized.
D. ThevalueofaStringvariableis""(emptystring).
E. Thevalueofallobjectvariablesisnull.
Giventhefollowingcodefragment:publicvoidcreate(){VectormyVect;myVect=newVector();}Whichofthefollowingstatementsaretrue?()
A. Thedeclarationonline2doesnotallocatememoryspaceforthevariablemyVect.
B. Thedeclarationonline2allocatesmemoryspaceforareferencetoaVectorobject.
C. Thestatementonline2createsanobjectofclassVector.
D. Thestatementonline3createsanobjectofclassVector.
E. Thestatementonline3allocatesmemoryspaceforanobjectofclassVector.