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

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

而remove()只会返回null

posted on 2019-04-04 11:37  drafire  阅读(1372)  评论(4编辑  收藏  举报