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.
|Java - Interview Questions and Answers|
|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  |
|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 ?|