Java / Collections
Difference between poll() and remove() method of Queue interface.
poll() and remove() method from Queue is used to remove the object and returns the head of the queue.
However If Queue is empty() then a call to remove() method will throw Exception, whereas a call to poll() method returns null.
More Related questions...