Saturday, 6 July 2019

What is the difference between poll and remove method in queue

They both remove object from queue but if you poll and it gets fails the null is returned and in case remove it throws an exception.

No comments:

Post a Comment