Given:Whichtwocodefragments,insertedindependentlyatline3,generatetheoutput4247?() A.Strings=123456789;s=(s-123).replace(1,3,24)-89;B.StringBuffers=newStringBuffer(123456789);C.sdelete(0,3).replace(1,3,;24;).delete(4,6);D.substring(3,6).delete(1,3).insert(1,ensp;;24;);
Given:Whichtwocodefragments,insertedindependentlyatline3,generatetheoutput4247?()
A.Strings="123456789";s=(s-"123").replace(1,3,"24")-"89";
B.StringBuffers=newStringBuffer("123456789");
C.sdelete(0,3).replace(1,3,";24";).delete(4,6);
D.substring(3,6).delete(1,3).insert(1, ";24";);
相关考题:
_________ the right kind of training , these teenage soccer players may one day grew the international stars.A. GivingB. Having givenC. To giveD. Given
____ the economic conditions, these countries are least developed.A: To giveB: GiveC: GivingD: Given
Whichtwocodefragments,insertedindependentlyatline3,generatetheoutput4247?() A.Strings=123456789;s=(s-123).replace(1,3,24)-89;B.StringBuffers=newStringBuffer(123456789);s.delete(0,3).replace(1,3,24).delete(4,6);C.StringBuffers=newStringBuffer(123456789);s.substring(3,6).delete(1,3).insert(1,24);D.StringBuilders=newStringBuilder(123456789);s.substring(3,6).delete(1,2).insert(1,24);E.StringBuilders=newStringBuilder(123456789);s.delete(0,3).delete(1,3).delete(2,5).insert(1,24);
publicclassTestString3{publicstaticvoidmain(String[]args){//insertcodehereSystem.out.println(s);}}Whichtwocodefragments,insertedindependentlyatline3,generatetheoutput4247?() A.Strings=“123456789”;s=(s-”123”).replace(1,3,”24”)-“89”;B.StringBuffers=newStringBuffer(”123456789”);s.delete(0,3).replace(1,3,“24”).delete(4,6);C.StringBuffers=newStringBuffer(”123456789”);s.substring(3,6).delete(1,3).insert(1,“24”);D.StringBuilders=newStringBuilder(”123456789”);s.substring(3,6).delete(1,2).insert(1,“24”);E.StringBuilders=newStringBuilder(”123456789”);s.delete(0,3).delete(1,3).delete(2,5).insert(1,“24”);
Given:What can directly access and change the value of the variable name?() A. any classB. only the Target classC. any class in the test packageD. any class that extends Target
He was() from his position as the president of the university. A、movedB、removedC、awardedD、given
Given:Whichtwocodefragments,insertedindependentlyatline5,willcompilewithoutwarnings?() A.publicvoidaddStrings(Listlist){B.publicvoidaddStrings(ListStringlist){C.publicvoidaddStrings(List?superStringlist){D.publicvoidaddStrings(List?extendsStringlist){B,C
___ more care, the flowers might have grown much better than now.A.Having givenB.GivingC.To giveD.Given