
Sun Services
Java™ Programming Language
Module 4, slide 13 of 31
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Left-Shift Operator <<
• Left-shift (<<) operator works as follows:
128 << 1 returns 128 * 2
1
= 256
16 << 2 returns 16 * 2
2
= 64