Possible Duplicate:
What is the following sign: <<?
Can someone please explain the << in the follow sample code?
final static public int MY_VAR = 1<<3;
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Sure, it’s a left shift – you’re shifting the number “1” left by 3 bits, so the result will be 8.
See section 15.19 of the Java Language Specification for more details.