Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Java
  3. Question
Java

What does “|=” mean? (pipe equal operator)

Asked by Abhinayan Verma Apr 13, 2021 1.8K views 1 answer
Share

About this question

 I tried searching using Google Search and Stack Overflow, but it didn't show up any results. I have seen this in open source library code:

Notification notification = new Notification(icon, tickerText, when);

notification.defaults |= Notification.DEFAULT_SOUND;

notification.defaults |= Notification.DEFAULT_VIBRATE;

What does "|=" ( pipe equal operator ) mean?

Your answer

1 Answer

More Java discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Java Blogs

Guides, tips and career advice on Java from JanBask experts.