Can you please provide an implementation of application level cache ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Java - Interview Questions and Answers

 Q1. Can you please provide an implementation of application level cache ?Design2016-11-18 13:42:22

Ans. We can use an expiration map whose entries gets expired after a certain interval and then we can put the logic to retrieve the entries if its expired in map. Alternatively we can create a separate class and make map its element. We can refresh the map in this class periodically by using a monitoring thread within static block.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     


Related Questions

 Let's suppose we have an to destroy objects, Design a program to implement garbage collection ?
 What is Dependency Injection or IOC ( Inversion of Control ) ?
 Design an e commerce application using AWS ? What AWS services will you use ?
  What are the Wrapper classes available for primitive types ?
  Difference between Factory and Abstract Factory Design Pattern ?
  What is MVC ?
  If you are given a choice to implement the code to either Insert a Record or Update if already exist, Which approach will you follow ?
 In which cases , moving methods to utility class could be useful ?
 What are the disadvantages of Design Patterns ?
  What Design pattern Wrapper Classes implement ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: