3

Possible Duplicate:
Java Operators : |= bitwise OR and assign example

what does |= mean in Java?

For example below;


note.flags |= Notification.FLAG_AUTO_CANCEL

Thanks

0

1 Answer 1

10

Always go here first: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html.

It's the bitwise-or assignment operator.

It's the same as:

note.flags = note.flags | Notification.FLAG_AUTO_CANCEL;
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.