Spiritual java is an attempt to let me express my thoughts, my ideas, my views and my feelings about two topics which are very close to my heart. Vippasana and Java!!! I have been practicing Vipassana for more than 8 years now and in all these years the way this teqnuqie helped me in overcoming many ups and downs in my life is quite remarkable. Java on the other hand is my source of my materialistic existence. So I'll be sharing my views on J2EE technology and its relevance in web.

Saturday 19 December 2009

Java concepts


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?
This question come to any developer's mind who has worked in C++. This is a very nice article that explains exactly this.

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?


  • 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