SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
sandeeprajsingh tandon wrote:When i write a class as an application developer, the compiled class "MyClass" goes into the classpath . System ClassLoader should automatically load that class when needed.
Is my above understanding correct?
Now when you say
"If the JAR is not part of the class path" : Then where do you see it lying?
"and the class cannot already be found by the thread's current class loader" : Which is the threads current class Loader and why was it not found by that class loader,
"two distinct calls to the same method with the same parameters still lead to different classes," : Hence i didnt understand this quote of yours.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
sandeeprajsingh tandon wrote:If what i say is true, then is it only a programming mistake that will cause 2 classloaders to load 1 class?
So, what i am confused on is is there an actual case in point where 2 classloaders would ever try to snatch each others responsibilities
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |