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

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

而poll()只会返回null

 
 
原文地址:https://www.cnblogs.com/williamjie/p/11458981.html