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

题目内容 (请给出正确答案)
单选题
下面的哪一项能正确生成5个空字符串()
A

Stringa[]=newString[5]

B

String5[a]

C

String[5]a

D

Stringa[5]


参考答案

参考解析
解析: 暂无解析
更多 “单选题下面的哪一项能正确生成5个空字符串()A Stringa[]=newString[5]B String5[a]C String[5]aD Stringa[5]” 相关考题
考题 以下各选项中能正确声明一个表示50个值为null的字符串数组的是( )。A.string[]a;B.string a[];C.chara[50][]D.stringa[]=newString[50]

考题 定义一个长度为5值为空的字符串数组,下列选项不正确的是A.String a[]={"","","","",""};B.String a[5];C.String [5]a;D.String[]a=new String[5]; for(int i=0;i<5;a[i++]=null);

考题 定义—个长度为5值为空的字符串数组,下列选项不正确的是A.String a[]={"","","","","",""};B.String a[5];C.String[5]a;D.String[] a new String[5]; for(int i=0;i<5;a[i++]-null);

考题 classParent{Stringone,two; classParent{Stringone,two;publicParent(Stringa,Stringb){one=a;two=b;}publicvoidprint(){System.out.println(one);}}publicclassChildextendsParent{publicChild(Stringa,Stringb){super(a,b);}publicvoidprint(){System.out.println(one+to+two);}publicstaticvoidmain(Stringarg[]){Parentp=newParent(south,north);Parentt=newChild(east,west);p.print();t.print();}}Whichofthefollowingiscorrect?()

考题 Giventhefollowingcode:publicclassPerson{intarr[]=newint[10];publicstaticvoidmain(Stringa[]){System.out.println(arr[1]);}}Whichstatementiscorrect?() A.Whencompilationsomeerrorwilloccur.B.Itiscorrectwhencompilationbutwillcauseerrorwhenrunning.C.Theoutputiszero.D.Theoutputisnull.

考题 Whichexpressionswillevaluatetotrueifprecededbythefollowingcode?()Stringa=hello;Stringb=newString(a);Stringc=a;char[]d={’h’,’e’,’l’,’l’,’o’}; A.(a==Hello)B.(a==b)C.(a==c)D.a.equals(b)E.a.equals(d)

考题 Stringa=null;a.concat(abc”);a.concat(def”);System.out.println(a);Whatistheresult?() A.abcB.nullC.abcdefD.Compilationfails.E.Thecoderunswithnooutput.F.Anexceptionisthrownatruntime.

考题 下列程序段不正确的是()。 A、string A=“firstJava”B、StringA= “firstJava”,A+=“Java”C、IntegerJ=new Integer(27),J-=7D、IntegerJ=new Integer(27),J- -

考题 下列程序的输出结果是______。Sub Prin()Dim B As StringA=1B=A Space(4) APrint APrint Trim(B)End Sub

考题 用如下语句所定义的数组的元素个数是______个。 Dim b(-2 to 4)as stringA. 2B.4C.SD.7

考题 定义一个表示10个值为null的字符串数组,下面选项正确的是( )。A.String[]a;B.Stringa[];C.chara[10][];D.Stringa[]=new String[10];

考题 下面哪些代码在Java语言中是合法的? ( )A.stringA="abcdefg"; A-="Cde";B.stringA="abcdefg"; A+="cde";C.Integer J=new Integer(27); J-=7;D.Integer J=new Integer(27); J--;

考题 String.Chars(5)返回字符串的第()个字符。

考题 定义一个表示20个值为null的字符串数组,下面选项正确的是()。A、String[]aB、Stringa[]C、chara[20][]D、Stringa[]=newString[20]

考题 以下属于用户自定义标识符的是()。 ①ac2 ②Dim ③_ad ④min_ ⑤Sub ⑥My_StringA、②③⑥B、①④⑥C、③④⑤D、①②⑤

考题 下面的那一项能正确生成5个空字符串()A、Stringa[]=newString[5]B、String5[a]C、String[5]aD、Stringa[5]

考题 下面的哪一项能正确生成5个空字符串()A、Stringa[]=newString[5]B、String5[a]C、String[5]aD、Stringa[5]

考题 下面哪些语句能够正确地生成5个空字符串?()A、String a[]=new String[5];for(int i=0;i5;a[i++]=“”);B、String a[]={“”,“”,“”,“”,“”};C、String a[5];D、String[5]a;E、String[]a=new String[5];for(int i=0;i5;a[i++]=null);

考题 单选题下面字符串中非法字符串为().A ’a string’B a stringC ’It is a’string’’D It is a’string.’

考题 单选题下列能正确反映脊柱的组成的是(A:椎骨,B:骶骨,C://尾骨)()A 24A+1B+1CB 24A+1B+5CC 24C+1B+3AD 24B+5A+1C

考题 多选题下面哪些语句能够正确地生成5个空字符串?()AString a[]=new String[5];for(int i=0;i5;a[i++]=“”);BString a[]={“”,“”,“”,“”,“”};CString a[5];DString[5]a;EString[]a=new String[5];for(int i=0;i5;a[i++]=null);

考题 填空题String.Chars(5)返回字符串的第()个字符。

考题 单选题以下属于用户自定义标识符的是()。 ①ac2 ②Dim ③_ad ④min_ ⑤Sub ⑥My_StringA ②③⑥B ①④⑥C ③④⑤D ①②⑤

考题 单选题下面的数组声明语句中正确的是(  )。A Dim gg[1,5] As StringB Dim gg[-1:1,5] As StringC Dim gg(1 To 5)As StringD Dim gg[1:5,1:5]As String

考题 问答题C#函数Func(stringa,stringb)用Lambda表达式怎么写?

考题 单选题下面的那一项能正确生成5个空字符串()A Stringa[]=newString[5]B String5[a]C String[5]aD Stringa[5]

考题 单选题下面哪一项是不正确的字符串赋值或赋初值的方式()。A char*str;str=“string”;B charstr[7]={‘s’,‘t’,‘r’,‘i’,‘n’,‘g’};C charstr1[10];str1=“string”;D charstr1[]=“string”,str2[]=“12345678”;