All articles i have read on class loading state that
If you are loading a properties file, use :
In my particular appliction using oc4j(J2EE) in certain rare occasions this particular technique returns null (In most cases it does pick up the property file)
and in those cases getClass().getClassLoader().get
ResourceAsStream() seems to work.
I want to know the reason as to why everyone is cheering for the former method !! Have been reading a lot about classloading of lately but have not got a conclusive answer yet ?