poll() 和 remove() 都是从队列中取出一个元素,但是 poll() 在获取元素失败的时候会返回空,但是 remove() 失败的时候会抛出异常。
posted on 2017-05-26 23:46 辰_雨_ 阅读(245) 评论(0) 收藏 举报