design an lru cache in java?
Answer / Shabd Prakash
LRU Cache can be designed using a LinkedHashMap where the access order is maintained. When the size limit is reached, the least recently used item is removed from the cache.
| Is This Answer Correct ? | 0 Yes | 0 No |
Why we use multi threading instead of multiprocessing?
What is the indent key?
Explain about map interface in java?
long d =10;int i =0;i=d; /// is this possible? If d is very long number (10 digits or some thing) then?
Differences between jdk 1.4 and 1.5
6 Answers SoftSol, TCS, Wipro,
Why put method is used?
Can size_t be negative?
what is the difference between cd & dvd ?
30 Answers Lovely Professional University, Satyam, Sibylsys,
What is polymorphism java example?
What is the difference between jdk and jre?
why interaction with server using javascript is difficult
How do singleton patterns work?