Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Framework and library difference?

 
Sunny Kumar
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes..thats it.
What is the difference between Framework and library?
 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic