What will be the result of runnig the following with the input of 67? public int MaskOff ( int N){ return N | 3; } Can you please explaing What is MaskOff in java, I never came accross it. Thanks in advance Alkesh
Hi alkesh, I guess "maskoff"(identifier) is just the name of the method. As you may know you can choose any valid identifier to be the name of your method. Hope that helps.
this returns 67 why this is n=67 if print n|3 then bitwise OR is performed.when you convert 67 into binary 01000011(take 8 bit register) 3 into binary 00000011 (BitWise OR)
then result is 01000011 i.e., is 67
the OR operations are like this 0 | 0 = 0 0 | 1 = 1 1 | 0 = 1 1 | 1 = 1
Thanks,<br />Sridhar.
You ridiculous clown, did you think you could get away with it? This is my favorite tiny ad!
a bit of art, as a gift, the permaculture playing cards