This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This may not be the best definition, but it is the way I think of it. A framework is something that is built to be extended to add your own functionality. A library is something that is built to be used as it will little extension necessary.
Joined: Dec 13, 2000
Can you please be more specific with ealborative reasoning?
A library is usually a bunch of code that helps you do stuff. The java util classes are a library of helpful programs. A framework is code that is used to constrain the way you write code. A framework forces you to write code in a particular way. Your code becomes part of the framework rather than using the framework. A framework is like the structure of a building. Your code attaches to the framework and becomes part of the building.