本页仅为文字内容,不可回答。

JAVA后端技能测试

您好,感谢您能抽出宝贵的时间来参与此次调查问卷!
执行下列程序的输出结果为()public class Test {public static void main(String[] args) { String s1 = HelloWorld; String s2 = new String(HelloWorld); if (s1 == s2) { System.out.println(s1 == s2); } else { System.out.println(s1 != s2); } if (s1.equals(s2)) { System.out.println(s1 equals s2); } else { System.out.println(s1 not equals s2); } }}
A.s1 == s2s1 not equals s2
B.s1 == s2s1 equals s2
C.s1 != s2s1 not equals s2
D.s1 != s2s1 equals s2
以下对选择语句描述错误的是()(2.5分)
A.根据某一条件重复执行一部分代码直到满足终止条件为止
B.可以根据条件控制程序流程,改变程序执行的顺序
C.选择语句可以嵌套使用
D.当条件满足时就会执行相应的语句
下面说法正确的是?()(2.5分)
A.调用Thread的sleep()方法会释放锁,调用wait()方法不释放锁
B.一个线程调用yield方法,可以使具有相同优先级线程获得处理器
C.在Java中,高优先级的可运行的线程会抢占低优先级线程的资源
D.java中,线程可以调用yield方法使比自己低优先级的线程运行
快件信息表waybillinfo(id, waybillno, zonecode, optype, update_time)中存储了快件的所有操作信息,请找出在中山公园网点,异常派送(optype=异常派件)次数超过3次的快件(waybillno),正确的sql为()(2.5分)
A.select waybillno, count(*) from waybillinfo where zonecode=中山公园 and optype=异常派件 and count(waybillno) 3
B.select waybillno, count(*) from waybillinfo where zonecode=中山公园 and optype=异常派件 order by waybillno having count(*) 3
C.select waybillno, count(*) from waybillinfo where zonecode=中山公园 and optype=异常派件 having count(*) 3
D.select waybillno from waybillinfo where zonecode=中山公园 and optype=异常派件 group by waybillno having count(*) 3
有订单表orders,包含字段用户信息userid,字段产品信息productid,以下语句能够返回至少被订购过两次的productid?()(2.5分)
A.select productid from orders where count(productid)1
B.select productid from orders where max(productid)1
C.select productid from orders where having count(productid)1 group by productid
D.select productid from orders group by productid having count(productid)1