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

题目内容 (请给出正确答案)
单选题
Strings="This is the";Stringt=s.concat("String.");t的内容是()
A

This is the String

B

This is the

C

String


参考答案

参考解析
解析: 暂无解析
更多 “单选题Strings="This is the";Stringt=s.concat("String.");t的内容是()A This is the StringB This is theC String” 相关考题
考题 He tried to show me how it ______ but he couldn ’t make it roll back up the string. A. workedB. functionedC. rolledD. did

考题 下面哪段语法执行正确() A.Strings=Gonewiththewind;Stringt=good;Stringk=s+t;B.Strings=Gonewiththewind;Stringt;t=s[3]+one;C.Strings=Gonewiththewind;Stringstandard=s.toUpperCase();D.Strings=homedirectory;Stringt=s-directory;

考题 There are two character strings:s and t.s="My favor is computer",t=substr(s,9,5).Then the result after operation isA.S="My favor is computer"; t="compu";B.S="My favor is computer"; t="is co";C.S="My favor"; t="is co";D.S="My favor"; t="is computer";

考题 下面程序段的输出结果是( ) classTest{ publicstaticvoidmain(Stringargs[]){ MyThreadt=newMyThread(); t.displayOutput("thasbeencreateD"); t.start(); } } ClassMyThreadextendsThread{ publicvoiddisplayOutput(Strings){ System.out.println(S); } publicvoidrun(){ displayOutput("tiSrunning."); } }A.thasbeencreated.B.thasbeencreated. TiSrunning.C.tiSrunning.D.编译出错

考题 现有:importjava.util.*;classAddStuff2{publicstaticvoidmain(String[]args){TreeSett=newTreeSet();if(t.add(one))if(t.add(two))if(t.add(three))add(four);for(Strings:t)System.out.print(s);}}结果为:()A.oneB.onethreetwoC.onetwothreeD.onetwothreefourE.fouronethreetwoF.编译失败

考题 importjava.util.*;publicclassLetterASort{publicstaticvoidmain(String[]args){ArrayListstrings=newArrayList();strings.add(?aAaA”);strings.add(”AaA”);strings.add(?aAa”);strings.add(”AAaa”);Collections.sort(strings);for(Strings:strings){System.out.print(s+);}}}Whatistheresult?()A.Compilationfails.B.aAaAaAaAAaaAaAC.AAaaAaAaAaaAaAD.AaAAAaaaAaAaAaE.aAaAaAaAaAAAaaF.Anexceptionisthrownatruntime.

考题 Strings=hello;Stringt=hello;charc[]={’h’,’e’,’l’,’l’,’o’};Whichreturntrue?() A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(newString(hello));E.t==c;

考题 A method returning length of the String.

考题 下面的程序执行后,屏幕上显示的应是( )。 publicclassExam{ publicstaticvoidmain(String[]args){ charcharl[]={'t','e','s','t'}; charchar2[]={'t','e,'s','t','1'}; Strings1=newString(char1); Strings2=newString(char2,0,4); System.out.println(s1.equals(S2)); } }A.trueB.falseC.testD.编译错误

考题 给定如下所示的JAVA代码,则运行时,会产生( )类型的异常Strings=null;s.concat("abcs.concat("abc");A.ArithmeticExceptionB.NullPointerExceptionC.IOExceptionD.ClassNotFoundException

考题 下面这段代码会产生( )个String对象。Strings1="hello";Strings2=s1.substring(2,3);Strings3=s1.toString();Strings4=newStringBuffer(s1).toString();A、1B、2C、3D、4

考题 下列的( )程序段可能导致错误。A.String s="hello": Sting t="good"; String k=s+t;B.Sting s="hello"; String t; t=s [3] + "one";C.Sting s="hello"; String standard=s.toUpperCase( );D.String s="hello": Stringt s +"good";

考题 A tow of 9 barges is made up three abreast by three long. The towboat is faced up to the last barge of the center string. The outer two strings of barges are the ______.A.port and starboard stringsB.outer stringsC.drag stringsD.side strings

考题 var x="this"+"is a string.";x的值为this is a string。()

考题 import java.util.*;  public class LetterASort {  public static void main(String[] args) {  ArrayList strings = new ArrayList();  strings.add(‟aAaA”);  strings.add(”AaA”); strings.add(‟aAa”);  strings.add(”AAaa”);  Collections.sort(strings);  for (String s: strings) { System.out.print(s + “ “); }  }  }  What is the result?() A、 Compilation fails.B、 aAaA aAa AAaa AaAC、 AAaa AaA aAa aAaAD、 AaA AAaa aAaA aAaE、 aAa AaA aAaA AAaaF、 An exception is thrown at runtime.

考题 Strings="This is the";Stringt=s.concat("String.");t的内容是()A、This is the StringB、This is theC、String

考题 public static void main方法的参数描述正确的有()。A、String args[]B、String[] argsC、Strings args[]zD、String argsE、Strings arg[]

考题 设String对象s="H",运行语句System.out.println(s.concat("ello!"));后String对象s的内容为"Hello!",所以语句输出为"Hello!"。

考题 创建字符串s:Strings=newString(“hello”);以下()语句将改变s。A、s.append(“aaa”)B、s.concat(s)C、s.substring(3)D、以上语句都不会

考题 已知如下定义:Strings="story";下面哪个表达式是合法的()A、s+="books"B、charc=s[1]C、intlen=s.lengthD、Stringt=s.toLowerCase()

考题 已知Strings=“Java”,则下面哪些代码是正确的()A、s=s+1;B、char c=s[3];C、int i=s.length;D、String t=s+new Object();

考题 多选题1. import java.util.*;  2. public class Test {  3. public static void main(String[] args) {  4. List strings = new ArrayList();  5. // insert code here  6. }  7. }  Which four, inserted at line 5, will allow compilation to succeed?()AString s = strings.get(0);BIterator i1 = strings.iterator();CString[] array1 = strings.toArray();DIterator i2 = strings.iterator();EString[] array2 = strings.toArray(new String[1]);FIterator i3 = strings.iterator();

考题 单选题A tow of 9 barges is made up three abreast by three long. The towboat is faced up to the last barge of the center string. The outer two strings of barges are the().A port and starboard stringsB outer stringsC drag stringsD side strings

考题 判断题设String对象s="H",运行语句System.out.println(s.concat("ello!"));后String对象s的内容为"Hello!",所以语句输出为"Hello!"。A 对B 错

考题 单选题用于文本*区中设置文本同时清除文本*区中原有文本的方法是()A setText(Strings)B getText()C TextArea(Strings)D TextArea(intx,inty)

考题 单选题import java.util.*;  public class LetterASort {  public static void main(String[] args) {  ArrayList strings = new ArrayList();  strings.add(‟aAaA”);  strings.add(”AaA”); strings.add(‟aAa”);  strings.add(”AAaa”);  Collections.sort(strings);  for (String s: strings) { System.out.print(s + “ “); }  }  }  What is the result?()A  Compilation fails.B  aAaA aAa AAaa AaAC  AAaa AaA aAa aAaAD  AaA AAaa aAaA aAaE  aAa AaA aAaA AAaaF  An exception is thrown at runtime.

考题 多选题已知Strings=“Java”,则下面哪些代码是正确的()As=s+1;Bchar c=s[3];Cint i=s.length;DString t=s+new Object();