Java: Bitwise operations on booleans that are returned from Methods -
this question has answer here:
- what “|=” mean? (pipe equal operator) 6 answers
i'm looking @ following code snippet
bresult |= purgedatafordig(protocol);
the variable bresult of type boolean.
am correct in assuming return of method purgedatafordig
or'd bresult
, result written bresult
?
thanks paul.
that correct,
the above code snippet functionally same as:
res = purgedatafordig(protocol); bresult = bresult | res;
Comments
Post a Comment