登录/
注册
题库分类
下载APP
帮助中心
首页
考试
搜题
APP
当前位置:
首页
>
查试题
>
当String对象用= = 比较时,如果String包括相同的地址,则结果为
主观题
当String对象用= = 比较时,如果String包括相同的地址,则结果为
查看答案
该试题由用户419****33提供
查看答案人数:13928
如遇到问题请
联系客服
正确答案
该试题由用户419****33提供
查看答案人数:13929
如遇到问题请
联系客服
搜索
相关试题
换一换
主观题
当String对象用= = 比较时,如果String包括相同的地址,则结果为
答案
单选题
下列语句创建了多少个string对象?()string[,]strArray=new string[3][4];
A.0 B.3 C.4 D.12
答案
主观题
下列语句创建了多少个 string 对象? () string[,] strArray = new string[3][4];
答案
单选题
语句string[,]_strArray=new_string[3,4];创建了多少个string对象?()
A.0 B.3 C.4 D.12
答案
主观题
(10-8)有如下代码段,为了比较str1与str2是否包含相同的字符,应该采用。 String str1=new String("good"); String str2=new String("good" );
答案
主观题
String = "abcdefghij",则: String[2:8] = ______ String[:7] = ______ String[2:] = ______ String[2:9:2] = ______ String[5:2:-1] = ______ String[-1:-8:-1] = ______ String[-5:-1:1] = ______
答案
单选题
将一个string类对象赋予新值,应该使用string类的()函数。
A.assign B.insert C.swap D.find
答案
主观题
下面()是创建String的正确方法?: String s1= new String("Tom"); String s2=s1;|String s1="Tom"; String s2=new String(s1);|String s="Tom";|String s=new String("Tom");
答案
单选题
String对象获取长度的属性是()
A.indexOf B.substr C.length D.toLowerCase
答案
单选题
下面的哪些程序段可能导致错误 ( ) Ⅰ: String s = "Gone with the wind";String t = "good ";String k = s + t; Ⅱ: String s = "Gone with the wind";String t;t = s[3] + "one"; Ⅲ: String s = "Gone with the wind";String standard = s.toUpperCase(); Ⅳ: String s = "home directory";String t = s-"directory":
A.ⅡⅢ B.ⅡⅣ C.ⅠⅣ D.ⅢⅣ
答案
热门试题
下面的哪些程序段可能导致错误 () Ⅰ: String s = "Gone with the wind";String t = "good ";String k = s + t; Ⅱ: String s = "Gone with the wind";String t;t = s[3] + "one"; Ⅲ: String s = "Gone with the wind";String stand
在对String类进行查找比较操作时,字符串的长度()。
交换两个string类对象所表示的字符串的内容,应该使用string类的()函数。
String对象中的值是不可变的
下面程序段输出的结果是什么 static void Main(string[] args) { string [ ] arr1 = new string []{"高等数学","C#语言程序设计","面向对象程序设计","英语; foreach (string a in arr1) Console.WriteLine(a); }
在一个string类对象表示的字符串中查找子串,应该使用string类的()函数。
String类对象创建之后可以再修改和变动。()
String对象是不可改变的。如果要修改字符串而不创建新的对象,则可以使用()类
String s=new String("xyz");创建了几个String Object?
可以使用String类的___________方法比较一字符串是否与字符串s相同
使用下列_____________函数读取一个字符串: enter("Enter a string")|input("Enter a string")|int(enter("Enter a string"))|int(input("Enter a string"))
给出如下不完整类:class Person { String name, department; int age; public Person(String n){ name = n; } public Person(String n, int a){ name = n; age = a; } public Person(String n, String d, int a){ //给属性 name
Given the uncompleted code of a class:class Person { String name, department; int age; public Person(String n){ name = n; } public Person(String n, int a){ name = n; age = a; } public Person(String n,
StringBuffer类和String类一样,都是不可变对象。()
下列程序段: String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1==s2)); 的结果为
public class Test{ public static void main(String[] args){ String a=args[1];String b=args[2];String c=args[3]; } } execute command:java Test Red Green Blue what is the value of c?
Proteins can be described as a string of beads. What is an alternative name for the string of beads ?
已知String[] s = new String[10];下列选项正确的是()
下列程序的执行结果是()。 public class Testff{ public static void main(String args){ String sl=new String("I am boy"); String s2=new String("I am boy"); System.out.println(sl==s2); } }
阅读下面程序 public class OperatorsAndExpressions void equalsMethodl()String s1=new String("how are you");String s2=new String("how are you");System.out.println(s1==s2); public static void main(String args)
购买搜题卡
会员须知
|
联系客服
免费查看答案
购买搜题卡
会员须知
|
联系客服
关注公众号,回复验证码
享30次免费查看答案
微信扫码关注 立即领取
恭喜获得奖励,快去免费查看答案吧~
去查看答案
全站题库适用,可用于E考试网网站及系列App
只用于搜题看答案,不支持试卷、题库练习 ,下载APP还可体验拍照搜题和语音搜索
支付方式
首次登录享
免费查看答案
20
次
微信扫码登录
账号登录
短信登录
使用微信扫一扫登录
获取验证码
立即登录
我已阅读并同意《用户协议》
免费注册
新用户使用手机号登录直接完成注册
忘记密码
登录成功
首次登录已为您完成账号注册,
可在
【个人中心】
修改密码或在登录时选择忘记密码
账号登录默认密码:
手机号后六位
我知道了
APP
下载
手机浏览器 扫码下载
关注
公众号
微信扫码关注
微信
小程序
微信扫码关注
领取
资料
微信扫码添加老师微信
TOP