Possible Duplicate:
Framework Vs. API
What is the difference between an API and a framework in Java? I mean the things a developer must be clear about. Can you share some article or case-study document?
Possible Duplicate:
Framework Vs. API
What is the difference between an API and a framework in Java? I mean the things a developer must be clear about. Can you share some article or case-study document?
See this related question: http://stackoverflow.com/questions/1415592/what-is-the-major-difference-between-a-framework-and-a-toolkit
An API is a set of methods/classes you can call from your code. A framework is the actual code which will do exactly what you want.
You can see things like this :
Most of the time frameworks come with their own interfaces, so there is only one implementation.
Resources :
On the same topic :
Any framework provides an API which exposes the funtionality to a developer. The framework itself is the implementation of this functionality (which usually hidden) and is only accessible through the API methods. This separation is important for further extensions of the framework, since older coder which alrady uses a framework isn't broken when the framework is extended while maintaining compatibility to the previous API:
API is a abbreviation for Application Programming Interface. Thus API is a technical view.
"Framework" can be a lot more than just code. It includes concepts, designs and code.