Help the world stop coronavirus! Stay home!

Prev Next

Java / Queue and its implementations

Difference between offer and add method in priority queue in java.

The add() will throw an IllegalStateException if no space is currently available in the Queue otherwise add method will return true. offer() method will return false if the element cannot be inserted due to capacity restrictions.

❤Cash Back At Stores you Love !!!❤

Earn your $10 reward when you make your first purchase through Ebates by signing up with clicking below button.

Ebates Coupons and Cash Back

More Related questions...

Show more question and Answers...

Regular expressions

Comments & Discussions