• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why they are using | symbol in the code  RSS feed

 
murali kankanala
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I have a veriety of usage in Java.
Can you please clarify why they are using | (pipe) symbol.

 
Paul Clapham
Sheriff
Posts: 22708
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's the logical "or" operator. But the question isn't related to Websphere so let's move it to a general Java forum.
 
Adam Michalik
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:That's the logical "or" operator.

As a matter of fact it's a bitwise operator rather than a logical operator (it "ORs" the bits of the numbers, not boolean values).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!