The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
April 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Class Loader

Posted by Rajendrakumar on May 14, 2001 at 4:45 AM

I have a doubt regarding class-loader...

1) when u install a application server, at that time System classpath is updated(by manually or application server instalation program) with that application server jar files... that is called application server class path It's not reloadable

2) we are also able to define application classpath which is reloadable...
ok
Doubt 1:
what my doubt is when u import your own class in to the application, which class loader loads it? ( i think it's depends on where we specify the classpath when we specify our classes in the system class path it's loaded by System class loader)
I need detailed explanation regarding this ???

Doubt 2:
when we specify "import package" in JSP or Servlets means it loads all the classes in to the memory, or whenever we instansiate the object for the particular class that's time only the class loader loads that particular class ???

I need detailed explanation regarding this ????
Regards
Rajendrakumar



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us