Results 1 to 3 of 3

Thread: & and &&

  1. #1
    helloworld is offline Member
    Join Date
    Sep 2008
    Posts
    11
    Rep Power
    0

    Default & and &&

    I think this question is very straightforward, but I tried to google it, google wldn't take in the symbol '&'.

    Can anyone explain what is the difference btwn the 2? I know && is used in conditionals. But &?

    Thank you.

  2. #2
    masijade is offline Senior Member
    Join Date
    Jun 2008
    Posts
    2,571
    Rep Power
    9

    Default

    the single ampersand is a bit-wise operator. Google "Java bit-wise operators" if you want more info.

  3. #3
    CJSLMAN's Avatar
    CJSLMAN is offline Moderator
    Join Date
    Oct 2008
    Location
    Mexico
    Posts
    1,159
    Rep Power
    8

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •