File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of shift operators in Java

 
Debopam Poddar
Ranch Hand
Posts: 51
Eclipse IDE Java jQuery
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please expalin me the practical use of Java shift operators (>> , <<). When to use these operators and why?
 
Campbell Ritchie
Sheriff
Pie
Posts: 47229
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this old thread. If you need more information, ask again
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic