网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
语句”Hello”.equals(”hello”);的正确执行结果是( )。A.trueB.falseC.0SXB

语句”Hello”.equals(”hello”);的正确执行结果是( )。

A.true

B.false

C.0

D.1


参考答案

更多 “ 语句”Hello”.equals(”hello”);的正确执行结果是( )。A.trueB.falseC.0SXB 语句”Hello”.equals(”hello”);的正确执行结果是( )。A.trueB.falseC.0D.1 ” 相关考题
考题 假设有以下代码: 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"));

考题 语句“Hello”. equals(“hello”);的正确执行结果是______。A) trueB) falseC) 0D) 1A.B.C.D.

考题 Strings=hello;Stringt=hello;charc[]={’h’,’e’,’l’,’l’,’o’};Whichreturntrue?() A.s.equals(t);B.t.equals(c);C.s==t;D.t.equals(newString(hello));E.t==c;

考题 Whichexpressionswillevaluatetotrueifprecededbythefollowingcode?()Stringa=hello;Stringb=newString(a);Stringc=a;char[]d={’h’,’e’,’l’,’l’,’o’}; A.(a==Hello)B.(a==b)C.(a==c)D.a.equals(b)E.a.equals(d)

考题 当输入为″hello?″时,下面程序的执行结果是( )。A.RvfsuB.hC.?D.hello

考题 4、以下语句的输出结果是: print("hello",end='+') print("world")A.hello+worldB.hello+ worldC.hello worldD.hello+ world+

考题 下列语句执行的结果是?int('hello')A.0B.1C.100D.程序出错

考题 以下哪个叙述是正确的?A."你好KU".length()的值是6。B."ntt".length()的值是3。C."Hello".equals("hello")的值是true。D."java".equals("java")的值是false。

考题 39、以下语句的输出结果是: print("hello",end='+') print("world")A.hello+worldB.hello+ worldC.hello worldD.hello+ world+