下列哪项是String的字面量?()
第1题:
下列语句能给数组赋值而不使用for循环的是
A.myArray{[1]="One";[2]="Two";[3]="Three";}
B.String s[5]=new String[]{"Zero", "One", "Two", "There", "Four"};
C.String s[]=new String[]{"Zero", "One", "Two", "There", "Four"};
D.String s[]=new String[]=|"Zero", "One", "Two", "There", "Four"};
第2题:
A.#inclue[string.h]
B.#include{string.h}
C.#include(string.h)
D.#include
第3题:
下列#include命令中,正确的是()
第4题:
下列类Account的构造方法中,声明正确的是?()
第5题:
下列不是 String 类的方法的是()
第6题:
下面哪项不是response对象的方法()
第7题:
下列Map的泛型声明中正确的是哪项?()
第8题:
smith
null
SALES
编译错误
第9题:
/u03A6
077
OxABBC
20
第10题:
smith
null
编译错误
name
第11题:
charAt(int index)
indexOf(String s)
beginWith(String s)
endsWith(String s)
第12题:
set Content Type(String contentTypestr)
set Header(String headername,String headervalue)
get Parameter(String str)
send Error(int errorcode)
第13题:
下列字符串中非法字符串为( )。
A.’a string’
B.’It is a’string’.’
C.”a string”
D.”It is a’string”
第14题:
下列的哪个程序段可能导致错误?
A.String s = "hello"; String t = "good"; String k = s + t;
B.String s = "hello"; String t; t = s[3] + "one";
C.String s = " hello "; String standard = s.toUpperCase( );
D.String s = "hello"; String t = s + "good";
第15题:
下列选项哪些是正确的JSP表达式语法格式()。
第16题:
public class Employee{ private String name; public Employee(String name){ this.name = name; } public String getName(){ return name; } } public class Manager extends Employee{ public Manager(String name){ System.out.println(getName()); } } 执行语句new Manager(“smith”)后程序的输出是哪项?()
第17题:
下列哪项不是int类型的字面量?()
第18题:
main方法是Java程序执行的入口点,关于main方法的方法头以下哪项是合法的()?
第19题:
Account (String name)()
Account (String name)
Account (name)()
NewAccount (String name)()
第20题:
<%string name="YXQ"><%=string name="您好"><%String name=YXQ%>
<%=String name=您好%>
<%=您好;%>
<%=YXQ%>
第21题:
Dim As String xuehao
Dim xuehao As String
Dim String As xuehao
Const xuehao As String
第22题:
“Hello”
‘world’
/u2345
new String(“good”)
第23题:
Map〈String〉
Map〈String,String〉
Map(String)
Map()