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.