Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

classloaders in a jvm

 
siva sankar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

how many classloaders will be there within a jvm.

Thanks & regards,
Siva
 
Ajay Singh
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
one system loader + many user defined class-loader (if the user has defined any)
 
Chris Beckey
Ranch Hand
Posts: 116
Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic