aspose file tools*
The moose likes Java in General and the fly likes Use of shift operators in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Use of shift operators in Java" Watch "Use of shift operators in Java" New topic
Author

Use of shift operators in Java

Debopam Poddar
Ranch Hand

Joined: Jun 21, 2005
Posts: 49

Can you please expalin me the practical use of Java shift operators (>> , <<). When to use these operators and why?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36478
    
  16
Try this old thread. If you need more information, ask again
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

shift operators are use in Integer arithmetic calculation to make fast calculation.

Have a look the source code of java.util.Integer . this class uses shift operators much.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use of shift operators in Java
 
Similar Threads
Application of shifting operators
how to use Random( )?
shift operators
SIGNED Left Shift operator???
need tips and tricks/link on shift parameters