在 Queue 中 poll()和 remove()有什么区别?

poll() ,如果队列为空的时候,则会抛出异常

而remove()只会返回null

原文地址:https://www.cnblogs.com/drafire/p/10653942.html