Link Details

Link 413507 thumbnail
User 398735 avatar

By lyndsey
via javaj2eeplanet.blogspot.com
Published: May 15 2010 / 22:47

A quick explanation of the difference between static and dynamic class loading.
  • 14
  • 3
  • 6692
  • 83

Comments

Add your comment
User 131436 avatar

sv102431 replied ago:

1 votes Vote down Vote up Reply

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.

User 187417 avatar

sproketboy replied ago:

0 votes Vote down Vote up Reply

Agreed but lyndsey is hot.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax