This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
K&B book says that LinkedHashSet can be used as LRU cache as you can specify whether it should preserve the order of insertion or order of last access. However the Java 1.4 API doesn't say so? Java 1.4 API says that only the LinkedHashMap can be used as LRU because there you can specify the order we want (insertion/last access)? Am I correct? Thanks deep