+1 vote
in JAVA by
Difference between poll() and remove() method?

1 Answer

0 votes
by

Both poll() and remove() take out the object from the Queue but if poll() fails then it returns null but if remove fails it throws Exception.

...