Can you please provide an implementation of application level cache ?

Search Interview Questions

 3306 questions in repository.
 There are more than 200 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 ) ?
  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 Design pattern Wrapper Classes implement ?
  What are the design considerations while making a choice between using interface and abstract class ?
 What are the disadvantages of Design Patterns ?

Subscribe to Java News and Posts. Get latest updates and posts on Java from
Enter your email address:
Delivered by FeedBurner

comments powered by Disqus

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:

X Close this