网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
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”);


参考答案

更多 “ 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”); ” 相关考题
考题 以下是JAVA中正确的入口方法是?() A.publicstaticvoidmain(String[]args){}B.publicstaticvoidmain(Stringargs){}C.publicvoidmain(String[]args){}D.publicstaticintmain(String[]args){}

考题 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;);

考题 以下哪个是有效的Java程序入口函数?A.public static void main(String[] args);B.public static void main();C.public static int main(String[] args);D.public static void main(int argc, String[] args)

考题 以下哪个main方法是正确的?A.public static void main(string[] args)B.public static void Main(String[] args)C.public static void main(String[] args)D.public static main(String[] args)E.public void main(String[] args)

考题 main()方法的正确定义方式是()。A.public static void main (String [ ] args ) { new NameSurfer().start (args ) ; }B.public static main (String [ ] args ) { new NameSurfer().start (args ) ; }C.public void main (String [ ] args ) { new NameSurfer().start (args ) ; }D.public static void main (String [ ] args ) { NameSurfer().start (args ) ; }

考题 Java程序中,main方法的格式正确的是()。A.static void main (string[] args)B.public void main (string[] s)C.public static main (string[] args)D.public static void main (string[] args)

考题 以下哪个是有效的Java程序入口函数?A.public static void main(String[] args);B.public static void main();C.public static int main(String[] args);D.public static void main(int argc, String[] args)E.main()

考题 main方法是Java应用程序执行的入口点,下面main方法的方法头合法的是()A.public static void main()B.public static void main(String[] args)C.public static void Main(String[] args)D.public static int main(String[] args)

考题 19、以下哪个是有效的Java程序入口函数?A.public static void main(String[] args);B.public static void main();C.public static int main(String[] args);D.public static void main(int argc, String[] args)