以下符号是什么:<< ;? [英] What is the following sign: <<?
本文介绍了以下符号是什么:<< ;?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
>>是什么?用Java做吗?
此符号有什么作用:<<?这是Java语言.
What does it do this sign: << ? This is in Java.
对于一个实例, new CustomPermission(1<< 5,'M');
最诚挚的问候
推荐答案
是位移位
http://download.oracle.com/javase/tutorial/java/nutsandbolts/op3.html
基本上,它会将左操作数乘以2乘以右操作数的幂.
Basically it multiplies the left operand by 2 to the power of the right operand
所以1<<5是1 * 2 ^ 5
so 1 << 5 is 1 * 2^5
这篇关于以下符号是什么:<< ;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文