JVM loads referenced classes which have not been linked to runtime system.
There are two ways classes are linked with runtime
1. Initial Class files
2. Policy based either eager or lazy.
Eager loads all the classes at startup of program execution.
Lazy loading will load classes when actually needed i.e.
a) Instance of class is created.
b) subclass is initialized.
c) One of static field initialized.
Feel free to add your comments.
There are two ways classes are linked with runtime
1. Initial Class files
2. Policy based either eager or lazy.
Eager loads all the classes at startup of program execution.
Lazy loading will load classes when actually needed i.e.
a) Instance of class is created.
b) subclass is initialized.
c) One of static field initialized.
Feel free to add your comments.
Comments
Post a Comment