Java LinkedList - differences between retrieve operations

mac2022-06-30  87

Returning null + removing operations: poll(), pollFirst().

Returning null + not removing operations: peek(), peekFirst().

Throwing exception + removing operations: pop(), remove(), removeFirst().

Throwing exception + not removing operations: element(), getFirst().

 

reference: http://stackoverflow.com/questions/14851367/java-linkedlist-differences-between-retrieve-operations

 

转载于:https://www.cnblogs.com/hygeia/p/5087617.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)