This post contains the compilation of some of the most popular java design questions that every java developer should be aware of.
- ThreadLocal explained in Detail.
This is a very well written article that explains the use of ThreadLocal with example
- Why multiple inheritance is not for java?
http://www.javaworld.com/javaqa/2002-07/02-qa-0719-multinheritance.html
- Diamond shape problem solved.
How multiple inheritance is achieved in java with the help of interfaces.
- What is the difference b/w weak and soft references?
- Weak References explained in detail
- Soft References explained in detail
- Static Factory pattern example: class instance which is created at the time of Static member initialization. This Factory always returns this instance.
http://alexmcferron.com/staticFactory.html
- Static method Pattern example: This pattern is just a style of decoupling object initialization from the client code. It always returns a new class instance.
No comments:
Post a Comment