[单选题]

表达式"hello" instance of String返回的值是哪项?()

A . true

B . false

C . 1

D . 0

参考答案与解析:

相关试题

表达式1£«2£«"hello"£«8的值为( )。

[单选题]表达式1+2+"hello"+8的值为( )。A.12hello8B.3hello8C.12helloD.不能运算

  • 查看答案
  • 表达式1£«2£«"hello"£«8的值为()。

    [单选题]表达式1+2+"hello"+8的值为( )。A.12hello8B.3hello8C.12helloD.不能运算

  • 查看答案
  • 表达式String(2,"Shanghai")的值是( )。

    [单选题]表达式String(2,"Shanghai")的值是( )。A.ShB.ShanghaiC.ShanghaiShanghaiD.SS

  • 查看答案
  • 顺序执行下列程序语句后,则b的值是String a="Hello";String

    [单选题]顺序执行下列程序语句后,则b的值是 String a="Hello"; String b=a.substring(0,2);A.HelloB.helloC.HeD.null

  • 查看答案
  • 假设有以下代码:String s="hello";String t="hello

    [单选题]假设有以下代码: String s="hello"; String t="hello"; char c[ ]={'h','e','l','l','o'}; 下列选项中,返回false的语句是______。A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(new String("hello"));

  • 查看答案
  • 表达式Len(String(6, "9"))的值是( )

    [单选题]表达式Len(String(6, "9"))的值是( )A.9B.6C.999999D.出错

  • 查看答案
  • 给出下面的代码,则以下( )选项返回true。String s="hello";

    [单选题]给出下面的代码,则以下( )选项返回true。 String s="hello"; String t="hello"; Char c[]={'h','e','l','l','o'};A.s. equals (t) ;B.t. equals (C);C.s==t;D.t==c;

  • 查看答案
  • 给出下列的代码,则以下()选项返回true。String s="hello";S

    [单选题]给出下列的代码,则以下( )选项返回true。 String s="hello"; String t="hello": char c[]={'h','e','l','l','o',};A.s.equals(t);B.t.equals(c);C.s==t;D.t==c;

  • 查看答案
  • 给出下列的代码,则以下哪个选项返回true?String s="hello";S

    [单选题]给出下列的代码,则以下哪个选项返回true? String s="hello"; String t="hello"; char c []= {'h','e','1','1','o'};A)s.equals(t);A.t. equals(B.;C.s==t;D.t==c;

  • 查看答案
  • 顺序执行下列程序语句后,则b的值是 String a = "Hello"; St

    [单选题]顺序执行下列程序语句后,则b的值是 String a = "Hello"; String b = a.substring(0,2);A.HelloB.helloC.HelD.null

  • 查看答案
  • 表达式"hello" instance of String返回的值是哪项?()