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.
More Related questions...