参考答案和解析
正确答案:D
更多“TextEditor的validType不能设置的验证类型()A、DIGITB、NULLC、IDCARDD、STRING”相关问题
  • 第1题:

    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 null
    • C、 An exception is thrown
    • D、 The code will not compile

    正确答案:B

  • 第2题:

    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、 smith
    • B、 null
    • C、 SALES
    • D、 编译错误

    正确答案:D

  • 第3题:

    你编译代码classMySstringextendsString{}会出现的情况是()

    • A、成功编译
    • B、不能编译,因为没有main方法
    • C、不能编译,因为String是abstract类型的
    • D、不能编译,因为String是final类型的

    正确答案:D

  • 第4题:

    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、 smith
    • B、 null
    • C、 编译错误
    • D、 name

    正确答案:C

  • 第5题:

    类Student代码如下:D   class Student{   String name;   int age;   Student(String nm){ (构造方法)   name = nm;  }  }   执行语句Student stu = new Student()后,字段age的值是哪项?()

    • A、 0
    • B、 null
    • C、 false
    • D、 编译错误

    正确答案:D

  • 第6题:

    SG-UAP平台展现框架中编辑器控件的validType字段提供验证功能,以下哪几项属于其默认验证类型()

    • A、String
    • B、NULL
    • C、INTEGER
    • D、EMAIL

    正确答案:C,D

  • 第7题:

    多选题
    SG-UAP平台展现框架中编辑器控件的validType字段提供验证功能,以下哪几项属于其默认验证类型()
    A

    String

    B

    NULL

    C

    INTEGER

    D

    EMAIL


    正确答案: A,C
    解析: 暂无解析

  • 第8题:

    单选题
    TextEditor的validType不能设置的验证类型()
    A

    DIGIT

    B

    NULL

    C

    IDCARD

    D

    STRING


    正确答案: C
    解析: 暂无解析

  • 第9题:

    单选题
    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 = null

    C

     baz = blue

    D

     Compilation fails.

    E

     An exception is thrown at runtime.


    正确答案: C
    解析: A java.lang.ArrayIndexOutOfBoundsException is thrown because of line 3, should be args[0].

  • 第10题:

    单选题
    下面哪个方法设置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)


    正确答案: B
    解析: 暂无解析

  • 第11题:

    单选题
    TimeEditor组件的validType提供验证功能,以下哪一项不属于其默认验证类型()
    A

    String

    B

    NULL

    C

    INTEGER

    D

    EMAIL


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    你编译代码classMySstringextendsString{}会出现的情况是()
    A

    成功编译

    B

    不能编译,因为没有main方法

    C

    不能编译,因为String是abstract类型的

    D

    不能编译,因为String是final类型的


    正确答案: D
    解析: 暂无解析

  • 第13题:

    TimeEditor组件的validType提供验证功能,以下哪几项属于其默认验证类型()

    • A、String
    • B、NULL
    • C、INTEGER
    • D、EMAIL

    正确答案:B,C,D

  • 第14题:

    编译代码classMySstringextendsString{}会出现的情况是()

    • A、成功编译
    • B、不能编译,因为没有main方法
    • C、不能编译,因为String是abstract类型的
    • D、不能编译,因为String是final类型的

    正确答案:D

  • 第15题:

    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 = null
    • C、 baz = blue
    • D、 Compilation fails.
    • E、 An exception is thrown at runtime.

    正确答案:E

  • 第16题:

    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 null
    • C、 An exception is thrown
    • D、 The code will not compile

    正确答案:B

  • 第17题:

    要对身份证进行验证,应该设置验证类型为()


    正确答案:"IDCARD"

  • 第18题:

    TimeEditor组件的validType提供验证功能,以下哪一项不属于其默认验证类型()

    • A、String
    • B、NULL
    • C、INTEGER
    • D、EMAIL

    正确答案:A

  • 第19题:

    单选题
    编译代码classMySstringextendsString{}会出现的情况是()
    A

    成功编译

    B

    不能编译,因为没有main方法

    C

    不能编译,因为String是abstract类型的

    D

    不能编译,因为String是final类型的


    正确答案: D
    解析: 暂无解析

  • 第20题:

    单选题
    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

     smith

    B

     null

    C

     编译错误

    D

     name


    正确答案: B
    解析: 暂无解析

  • 第21题:

    单选题
    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 null

    C

     An exception is thrown

    D

     The code will not compile


    正确答案: B
    解析: 暂无解析

  • 第22题:

    单选题
    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 null

    C

     An exception is thrown

    D

     The code will not compile


    正确答案: A
    解析: 暂无解析

  • 第23题:

    多选题
    TimeEditor组件的validType提供验证功能,以下哪几项属于其默认验证类型()
    A

    String

    B

    NULL

    C

    INTEGER

    D

    EMAIL


    正确答案: B,A
    解析: 暂无解析