This is the String
This is the
String
第1题:
A.s.equals(t);
B.t.equals(c);
C.s==t;
D.t.equals(newString("hello"));
E.t==c;
第2题:
A method returning length of the String.
第3题:
下列的( )程序段可能导致错误。
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";
第4题:
var x="this"+"is a string.";x的值为this is a string。()
第5题:
Strings="This is the";Stringt=s.concat("String.");t的内容是()
第6题:
public static void main方法的参数描述正确的有()。
第7题:
下面字符串中非法字符串为().
第8题:
1. import java.util.*; 2. public class Test { 3. public static void main(String[] args) { 4. List
第9题:
对
错
第10题:
//Dim a As String
/Dim a As String
‘Dim a As String
“Dim a As String
第11题:
Line 5 will not compile, because void methods cannot be overridden.
Line 12 will not compile, because there is no version of test() that rakes a charargument.
The code will compile but will throw an exception at line 12.
The code will compile and produce the following output: I am an int.
The code will compile and produce the following output: I am a String.
第12题:
s=String.valueOf(f);
f=Float.parseFloat(s);
s=f;
s=(String)f;
第13题:
请读程序: # includde<stdio.h> # include<string.> void fun(char * s) {char a[10]; strcpy(a,"STRING"); s=a; } main() { char*p; fun(p); print{("%s\n",p); } 上面程序的输出结果(表示空格) ( )
A.STRING
B.STRING
C.STRING
D.不确定的值
第14题:
给定如下所示的JAVA代码,则运行时,会产生( )类型的异常
Strings=null;
s.concat("abc");
A.ArithmeticException
B.NullPointerException
C.IOException
D.ClassNotFoundException
第15题:
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 strings
B.outer strings
C.drag strings
D.side strings
第16题:
public static void main方法的参数描述是()。
第17题:
public static void main方法的参数描述是()
第18题:
设String对象s="H",运行语句System.out.println(s.concat("ello!"));后String对象s的内容为"Hello!",所以语句输出为"Hello!"。
第19题:
已知如下定义:Strings="story";下面哪个表达式是合法的()
第20题:
’a string’
a string
’It is a’string’’
It is a’string.’
第21题:
对
错
第22题:
Compilation fails.
aAaA aAa AAaa AaA
AAaa AaA aAa aAaA
AaA AAaa aAaA aAa
aAa AaA aAaA AAaa
An exception is thrown at runtime.
第23题:
port and starboard strings
outer strings
drag strings
side strings