网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
TextEditor的validType不能设置的验证类型()
- A、DIGIT
- B、NULL
- C、IDCARD
- D、STRING
参考答案
更多 “TextEditor的validType不能设置的验证类型()A、DIGITB、NULLC、IDCARDD、STRING” 相关考题
考题
如果你试图编译下面的代码会发生什么事? Class MyString extends String{ }
A.代码编译成功B.代码不能编译,因为没有定义一个main()方法C.代码不能编译,因为String是abstract类型的D.代码不能编译,因为String是final类型的
考题
publicclassTest{privatestaticint[]x;publicstaticvoidmain(String[]args){System.out.println(x[0]);}}Whatistheresult?()
A.0B.nullC.Compilationfails.D.ANullPointerExceptionisthrownatruntime.E.AnArrayIndexOutOfBoundsExceptionisthrownatruntime.
考题
int index = 1; String test = new String; String foo = test[index]; What is the result?()A、 Foo has the value “”B、 Foo has the value nullC、 An exception is thrownD、 The code will not compile
考题
public class Employee{ private String name; public Employee(String name){ this.name = name; } public String getName(){ return name; } } public class Manager extends Employee{ private String department; public Manager(String name,String department){ this.department = department; super(name); System.out.println(getName()); } } 执行语句new Manager(“smith”,”SALES”)后程序的输出是哪项?() A、 smithB、 nullC、 SALESD、 编译错误
考题
编译代码classMySstringextendsString{}会出现的情况是()A、成功编译B、不能编译,因为没有main方法C、不能编译,因为String是abstract类型的D、不能编译,因为String是final类型的
考题
你编译代码classMySstringextendsString{}会出现的情况是()A、成功编译B、不能编译,因为没有main方法C、不能编译,因为String是abstract类型的D、不能编译,因为String是final类型的
考题
public class Test { public static void main( String[] args) { String foo = args[1]; String bar = args[2]; String baz = args[3]; System.out.println(“baz = “ + baz); } } And the command line invocation: java Test red green blue What is the result?() A、 baz =B、 baz = nullC、 baz = blueD、 Compilation fails.E、 An exception is thrown at runtime.
考题
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”)后程序的输出是哪项?() A、 smithB、 nullC、 编译错误D、 name
考题
int index = 1; String [] test = new String[3]; String foo = test[index]; What is the result?() A、 Foo has the value “”B、 Foo has the value nullC、 An exception is thrownD、 The code will not compile
考题
类Student代码如下:D class Student{ String name; int age; Student(String nm){ (构造方法) name = nm; } } 执行语句Student stu = new Student()后,字段age的值是哪项?()A、 0B、 nullC、 falseD、 编译错误
考题
单选题编译代码classMySstringextendsString{}会出现的情况是()A
成功编译B
不能编译,因为没有main方法C
不能编译,因为String是abstract类型的D
不能编译,因为String是final类型的
考题
单选题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”)后程序的输出是哪项?()A
smithB
nullC
编译错误D
name
考题
单选题public class Test { public static void main( String[] args) { String foo = args[1]; String bar = args[2]; String baz = args[3]; System.out.println(“baz = “ + baz); } } And the command line invocation: java Test red green blue What is the result?()A
baz =B
baz = nullC
baz = blueD
Compilation fails.E
An exception is thrown at runtime.
考题
单选题int index = 1; String [] test = new String[3]; String foo = test[index]; What is the result?()A
Foo has the value “”B
Foo has the value nullC
An exception is thrownD
The code will not compile
考题
单选题下面哪个方法设置MIME类型?()A
setHeader(String headerName,String headerValue)B
setContentType(String mimeType)C
setContentLength(int length)D
addCookie(Cookie c)E
addHeader(String name,String value)
考题
单选题int index = 1; String test = new String; String foo = test[index]; What is the result?()A
Foo has the value “”B
Foo has the value nullC
An exception is thrownD
The code will not compile
考题
单选题你编译代码classMySstringextendsString{}会出现的情况是()A
成功编译B
不能编译,因为没有main方法C
不能编译,因为String是abstract类型的D
不能编译,因为String是final类型的
热门标签
最新试卷