可学答题网 > 问答 > SCJP程序员认证考试题库
目录: 标题| 题干| 答案| 搜索| 相关
问题

Use the operators ""


Use the operators "", which statements are true? ()   

  • A 0000 0100 0000 0000 0000 0000 0000 0000<<5 gives    1000 0000 0000 0000 0000 0000 0000 0000
  • B 0000 0100 0000 0000 0000 0000 0000 0000<<5 gives    1111 1100 0000 0000 0000 0000 0000 0000
  • C 1100 0000 0000 0000 0000 0000 0000 0000>>5 gives    1111 1110 0000 0000 0000 0000 0000 0000
  • D 1100 0000 0000 0000 0000 0000 0000 0000>>5 gives    0000 0110 0000 0000 0000 0000 0000 0000
参考答案
参考解析:

Java的移位操作符一共有三种,分别是”>>”,”>>>”,”32的结果是a而不是0,同理,对long型数是对右操作数取64的模,a>>64==a;还有一点需要注意的是移位操作符”>>>”只对int型和long型有效,对byte或者short的操作将导致自动类型转换,而且是带符号的。

分类:SCJP程序员认证考试题库
相关推荐

1、What is the use̳

What&#8194;is&#8194;the&#8194;use&#8194;of&#8194;NPV&#8194;in&#8194;Cisco&#8194;Unified&#8194;Computing&#8194;Systems?&#8194;()&#8194;&#8194;&#8194;&#8194;A&ensp;...

2、In the operate phase

In&#8194;the&#8194;operate&#8194;phase,&#8194;providing&#8194;and&#8194;maintaining&#8194;reliable,&#8194;current&#8194;information&#8194;about&#8194;the&#8194;WLA...

3、In the operate phase

In&#8194;the&#8194;operate&#8194;phase,&#8194;providing&#8194;and&#8194;maintaining&#8194;reliable,&#8194;current&#8194;information&#8194;about&#8194;the&#8194;wla...

4、The use of SOAP̳

The use of SOAP for exchanging information is an example of an integration with()AMQ ServicesBSAPCWeb ServicesDAriba

5、The operations of a&

The operations of a telegraphic transfer is just the same as the mail transfer.A正确B错误

6、You use the followin

You&#8194;use&#8194;the&#8194;following&#8194;declaration&#8194;to&#8194;add&#8194;a&#8194;Web&#8194;user&#8194;control&#8194;named&#8194;TestUserControl.ascx&#8194;...