• Post Reply Bookmark Topic Watch Topic
  • New Topic

Difference between API and framework  RSS feed

 
Suhaas Mohandos
Greenhorn
Posts: 21
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am unable to understand the difference between API and framework. Please guide me.

Regards
Suhaas
 
Stephan van Hulst
Saloon Keeper
Posts: 7969
143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A framework is a bit like a large library. Libraries may contain code, configuration files and other resources. An API is just the part of the code that is visible from outside the library.
 
Tim Holloway
Saloon Keeper
Posts: 18789
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Spring is a framework (http://springframework.org). It defines multiple APIs - one for the basic bean factory facilities, several for different types of database persistence, web presentation, security and many more.

JavaServer Faces is a framework. It defines an API (the javax.faces classes), but it also implements a wide number of services, such as auto-wiring, automatic instantiation of Managed Beans, and so forth.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!