首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
计算机
下列代码的执行结果是______。 public class ex55 { public static void main(String args[] ) { St
下列代码的执行结果是______。 public class ex55 { public static void main(String args[] ) { St
admin
2008-01-11
28
问题
下列代码的执行结果是______。 public class ex55 { public static void main(String args[] ) { String s1=new String("hello"); String s2=new String("hello"); System.out.print (s1==s2); System.out.print (","); System.out.println (s1.equals (s2)); } }
选项
A、true, false
B、true, true
C、false, true
D、false, false
答案
C
解析
转载请注明原文地址:https://jikaoti.com/ti/Qkb0FFFM
本试题收录于:
二级Java题库NCRE全国计算机二级分类
0
二级Java
NCRE全国计算机二级
相关试题推荐
在使用查询设计器创建查询时,为了指定在查询结果中是否包含重复记录(对应于DISTINCT),应该使用的选项卡是
删除“持有数”表中所有外币名称为“法郎”的记录,下列SQL语句正确的是()。“外汇名”表:外币代码外币名称现钞买入价现钞卖出价基准价13欧元958.6400985.2
显示当前表单程序代码是ThisForm.Show,其中的Show是表单对象的()。
在SQL语句中,与表达式“供应商名LIKE’’%北京%"”功能相同的表达式是()。
有如下SQL语句:仓库(仓库号C(3)、所在地C(8)、人数N(2))职工(仓库号C(3)、职工号C(2)、姓名C(8)、工资I)INSERTINTO职工VALUES(’’WH4’’,’’E15’’,’’张清",2800)在命令窗口执行该命令后(
下面关于命令DOFORMXXNAMEYYLINKED的陈述中,哪个是正确的()。
在考生文件夹下,打开“宾馆”数据库,完成如下操作:(1)打开“客户”表,给“性别”字段增加约束:性别只能为“男”或“女”,默认值为:"女",表达式为:性别$"男女"。(2)为“入住”表创建一个主索引,主索引的索引名为fkkey,索引表达
使用如下数据表:学生.DBF.学号(C,8),姓名(C,6),性别(C,2),出生日期(D)选课.DBF.学号(C,8),课程号(C,3),成绩(N,5,1)假定学号的第3、4位为专业代码,要计算各专业学生选修课程号为“101”课程的平均成绩,正确的
下面程序计算一个整数的各位数字之和,在下划线处应填写的语句是SETTALKOFFINPUT"x="TOxs=0DOWHILEx!=Os=s+MOD(x,10)______________ENDDO?sSETTALKON
二进制整数1011010转换成十进制数是
随机试题
下列被称为“十二经脉之海”、“血海”的是
心脏病患者拔牙应视为禁忌证的是
中风的西医界定是()。
“李老汉私房菜”是李甲投资开设的个人独资企业。关于该企业遇到的法律问题,下列哪一选项是正确的?()
当年考核被确定为不称职等次的,予以()。
试论我国刑法中数罪并罚制度的特点和适用数罪并罚的条件。
面临环境日益被污染的状况,人类越来越重视环境问题,这是因为()
资产阶级思想与封建主义思想在中国的第一次正面交锋是指
设随机变量X服从n个自由度的t分布,定义tα满足P{X≤tα}=1一d-α(0<α<1).若已知P{|X|>χ}=b(b>0),则χ等于
Groupsororganizationsareanimportantpartofsomepeople’slives.Whydoyouthinkgroupsororganizationsareimportantto
最新回复
(
0
)