Tuesday, September 06, 2005

Difference between traditional libraries and Java framework

Came across a very interesting difference between traditional C style libraries (e.g. stdio.h, string.h) and Java style frameworks (e.g. Struts, JUnit).

In traditional libraries you write the main driver code and invoke the library code to access the features offered by the library. For example, In c you write the main() function and call, say strcpy from your main.

Java style frameworks work the other way around. In java style frameworks, the framework does the driving and expects your code to be plugged into the framework.

No comments: