File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Class loading hierrarchy

 
Ragav Baskaran
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I want to know, how class loading works. For example if i have two classes named com.demo.DemoConstants in two jars named demo1.jar and demo2.jar and both jars in classpath , which class will be loaded by the JVM?

Is there any way to control the class that is getting loaded from the jar ?

Thanks,
Ragavendran
 
Maneesh Godbole
Saloon Keeper
Posts: 10974
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Raga Vendran:

I want to know, how class loading works.


Did you try googling it? Did you get any results? Did you read those results. Which part of the results did you not understand?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Introduction to the class loader hierarchy and the boot classpath is a very good introductory article.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic