File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes Framework and library difference? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Framework and library difference?" Watch "Framework and library difference?" New topic

Framework and library difference?

Sunny Kumar
Ranch Hand

Joined: Oct 27, 2005
Posts: 57
Yes..thats it.
What is the difference between Framework and library?
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
Confusing..either way ,
if java.util is a library, i guess you use it. In case of a framework, if you code something according to framework specifications and configure the same within the framework, it calls your code at appropriate times.
and a framework is distributed in the form a library


If by library , you meant utility classes (java.util.ArrayList for eg), you call them in your code.

If its a framework, for eg struts, then typically your action classes are called by the framework (struts request processor for eg). So the the call is inverted in this case. The difference lies in you calling something (ArrayList) and someone else (struts framework) calling your code (Struts Action).

I hope its clear now
[ December 05, 2005: Message edited by: Karthik Guru ]
Sunny Kumar
Ranch Hand

Joined: Oct 27, 2005
Posts: 57
I agree. Here's the link:
subject: Framework and library difference?
It's not a secret anymore!