By lyndsey
via javaj2eeplanet.blogspot.com
Published: May 15 2010 / 22:47
A quick explanation of the difference between static and dynamic class loading.
| Subversion | |
| Written by: Lorna Jane Mitchell | |
| Featured Refcardz: Top Refcardz: | |
| 150+ Refcardz Available · Get them all | |
By lyndsey
via javaj2eeplanet.blogspot.com
Published: May 15 2010 / 22:47
Comments
sv102431 replied ago:
Inaccurate article that confuses fundamental class loading issues and "recommended practices". The author is obviously a novice who would profit from a bit of research before posting his limited understanding of concepts.
1. "Classes are statically loaded with Java's "new" operator."
This would imply that static methods could be executed without the class being loaded.
2. "Unlike the static loading, the dynamic loading will decide whether to load the class Car or the class Jeep at runtime based on a properties file and/or other runtime conditions"
Simply confusing. No mention of fully qualified names to identify classes
3. Constant classes or property files are orthogonal with dynamic class loading.
4. No mention of classloaders. For a J2EE blog, that's weak.
sproketboy replied ago:
Agreed but lyndsey is hot.
Voters For This Link (14)
Voters Against This Link (3)