Home » Source Code » ClassLoader-related code

ClassLoader-related code

java_interest
2014-01-04 01:04:40
The author
View(s):
Download(s): 0
Point (s): 1 
Category Category:
Java DevelopmentJava Development JavaJava

Description

JVM when the class is loaded, via ClassLoader loadClass () method to load class, loadClass (String name) method:
Using parents entrust mode:
When the JVM starts, the class loader in the boot JRE/RT.jar: bootstrap classloader, which loads the core Java API, and ExtClassLoader, and then start the extension ClassLoader loads the extension class, and load the user program loader AppClassLoader and specify ExtClassLoader for the parent class;
When a class is loaded, it will first check is already loaded in memory, if it is, you will no longer be loaded, and if not, then from AppClassLoader to load the first jar found in the bag, is no longer found in the classpath;
If a custom loader classes, namespaces can exist, when different loader loads the same class, the resulting instance is different;

Sponsored links

File list

Tips: You can preview the content of files by clicking file names^_^
Name Size Date
Dog.java168.00 B28-12-10 17:12
MyClassLoader.java2.34 kB28-12-10 17:12
MyTest.java593.00 B28-12-10 17:12
Sample.java218.00 B28-12-10 17:12
Test1.java377.00 B28-12-10 17:12
Test2.java282.00 B28-12-10 17:12
Test3.java333.00 B28-12-10 17:12
Test4.java481.00 B28-12-10 17:12
Test5.java635.00 B28-12-10 17:12
Test6.java510.00 B28-12-10 17:12
Test7.java545.00 B28-12-10 17:12
Test8.java349.00 B28-12-10 17:12
ClassLoader.pdf3.16 MB28-12-10 17:12
Dog.java128.00 B28-12-10 17:12
<Java>0.00 B192837 172434
MyClassLoader.java2.61 kB28-12-10 17:12
Sample.java178.00 B28-12-10 17:12
<classloader>0.00 B28-12-10 17:14
<code>0.00 B28-12-10 17:14
...
Sponsored links

Comments

(Add your comment, get 0.1 Point)
Minimum:15 words, Maximum:160 words
  • 1
  • Page 1
  • Total 1

ClassLoader-related code (3.04 MB)

Need 1 Point(s)
Your Point (s)

Your Point isn't enough.

Get 22 Point immediately by PayPal

Point will be added to your account automatically after the transaction.

More(Debit card / Credit card / PayPal Credit / Online Banking)

Submit your source codes. Get more Points

LOGIN

Don't have an account? Register now
Need any help?
Mail to: support@codeforge.com

切换到中文版?

CodeForge Chinese Version
CodeForge English Version

Where are you going?

^_^"Oops ...

Sorry!This guy is mysterious, its blog hasn't been opened, try another, please!
OK

Warm tip!

CodeForge to FavoriteFavorite by Ctrl+D