题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2024-07-31 02:32:08

[单项选择]当执行下面代码时,会输出( )。
Boolean b1 = new Boolean(true);
Boolean b2 = new Boolean(true);
if (b1 == b2)
if (bi.equals(b2))
System. out.printin ("a");
else
System. out. println ("b");
else
if (bi.equals(b2))
System. out.println ("c");
else
System. out.printIn("d");
A. a
B. b
C. c
D. d

更多"当执行下面代码时,会输出( )。 Boolean b1 = new"的相关试题:

[单项选择]当执行下面代码时,会输出( )。
Boolean b1 = new Boolean(true);
Boolean b2 = new Boolean(true);
if (bl == b2)
if (b1.equals(b2))
System.out.println("a");
else
System.out.println("b");
else
if (bi.equals(b2))
System.out.println("c");
else
System.out.println("d");
A. a
B. b
C. c
D. d
[填空题]Java语言中,boolean型常量只有true和 【6】 两个值。
[填空题]Java语言中,boolean型常量只有true和______两个值。
[单项选择]当CPU执行操作系统代码时,称CPU处于( )。
A. 执行态
B. 用户态
C. 内核态
D. 就绪态
[单项选择]下面程序段执行后b的值是______。
Integer integ =new Integer(9);
boolean b = integ instanceof Object;
A. 9
B. true
C. 1
D. false
[单项选择]给出下面的程序代码片段,m为下列哪个值时将会输出default ( )
switch (m)
case 0: System. out. println ("case 0");
case 1: System. out. println ("case 1"); break;
case 2: System. out. println ("case 2"); break;
default: System. out. println ("default");
A. 0
B. 1
C. 2
D. 3
[单项选择]下面哪个不是数据库系统必须提供的数据控制功能若执行下面列出的操作,______操作不能成功执行。
A. 从 DEPT 中删除系号=’03’的行
B. 在 DEPT 中插入行(’06’,’外语系’,’6 号楼’) C)将 DEPT 中系号=’02’的系号改为’10’
C. 将 DEPT 中系号=’01’的地址改为’5 号楼’
[单项选择]在执行下面这段Java程序时:
public class Test
public static void main (String[] args)
String s1=args[0];
String s2=args[1];
String s3=args[2];


若编译程序后键入命令: java Test one two three,那么变量s1所引用的字符串为( )。
A. null
B. test
C. one
D. java
[单项选择]执行下面程序后输出的正确结果是
public class Test
public stoic void main (String args[])
byte x=3, y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);


A. 20.0, 1
B. 20.0, 1.0
C. 20,0
D. 20, 1.0
[单项选择]执行下面程序后输出的正确结果是
public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(",");
System.out.print(x/y);


A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]执行下面程序后输出的正确结果是
Public class Test
public static void main(String args[])
byte x=3,y=4;
long r=80L;
System.out.print(r/y);
System.out.print(”,”);
System.out.print(x/y);


A. 20.0,1
B. 20.0,1.0
C. 20,0
D. 20,1.0
[单项选择]下列叙述正确的是( )。若执行下面列出的操作,______操作不能成功执行。
A. 从 DEPT 中删除系号=’03’的行
B. 在 DEPT 中插入行(’06’,’外语系’,’6 号楼’) C)将 DEPT 中系号=’02’的系号改为’10’
C. 将 DEPT 中系号=’01’的地址改为’5 号楼’

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

截图扫码使用小程序[完全免费查看答案]
请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码