File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes classloaders in a jvm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "classloaders in a jvm" Watch "classloaders in a jvm" New topic

classloaders in a jvm

siva sankar
Ranch Hand

Joined: Jul 13, 2006
Posts: 68

how many classloaders will be there within a jvm.

Thanks & regards,
Ajay Singh
Ranch Hand

Joined: Dec 13, 2006
Posts: 182
one system loader + many user defined class-loader (if the user has defined any)
Chris Beckey
Ranch Hand

Joined: Jun 09, 2006
Posts: 116

It depends on the JVM, count on one for the core libs, one for the extensions (if any) and one for the user classes. App servers create many more. Run this code to see:
I agree. Here's the link:
subject: classloaders in a jvm
It's not a secret anymore!