• Post Reply Bookmark Topic Watch Topic
  • New Topic

Shift Operators  RSS feed

 
Philip Pomario
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kathy Sierra wrote in her amazing certification book the following practical notes regading shift opeators:

x >> 4 (is equivalent to) x/(2^4)
x << 3 (is equivalent to) x*(2^3)

Though, did not mention a practical expression equivalent to the unsigned right shift. My question is:

x >>> 5 (is equivalent to) ???
 
Philip Pomario
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just passed the SCJP1.4 exam and wanted to post this appreciation note to thank everyone who helped me understand Java a little better. Without your help this personal achievement wouldn't be possible. (or not, in the case of this one specific thread - lol
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Filipe,

Please do not post the same message many times in other thread.

You might show your thankful by creating a new thread.

Nick
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!