Title: ClassLoaders
 

1) Is it possible to have multiple instances of same classloader in the same JVM ?

Yes very much possible.

2) Is it possible to load a load a normal java class into the same classloader more than once?

No, not possible.

3)What happens if I load a singleton Java class, which is already loaded into the same ClassLoader by another class ?

Singleton or any type of class you load, it works within the namespace or scope of the classloader. The classloader will not load the class, if the class is already loaded by it.

Regards,

Gautam

www.pramati.com

 

 

Reply via email to