What does << mean in Java?

前端 未结 8 1138
面向向阳花
面向向阳花 2020-12-06 10:08

I can\'t find out what << means in Java because I can\'t search for it on Google - I am absolutely lost!

The code in question is:

         


        
8条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-06 10:37

    Left shift a number of bits. It is equivalent to multiplying by two that many times.

    It's used for setting specific bits in a byte, or specific bytes in a word.

提交回复
热议问题