This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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!