+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.

Related questions

0 votes
asked Mar 16, 2021 in JAVA by Robindeniel
0 votes
asked Jun 16, 2019 in JAVA by reins.robin
...