This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Framework and library difference?" Watch "Framework and library difference?" New topic
Author

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

Update:

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
 
wood burning stoves
 
subject: Framework and library difference?
 
Similar Threads
suggest a concept for workshop
library vs framework
Difference between Framework & Library
What is a framework
Why is Java Collection Framework called a "Framework" ?