Tuesday, October 28, 2003 10:59 PM
1> When a thread encounters a new class, which classloader will it use to load the new class? It will use its context classloader?
The java API says:
The context ClassLoader is provided by the creator of the thread for use by code running in this thread when loading classes and resources. If not set, the default is the ClassLoader context of the parent Thread. The context ClassLoader of the primordial thread is typically set to the class loader used to load the application.
who can explains it to me? Thanks in advance!