pls clear doubt

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Oct 2008
Posts: 25
Reputation: shubhang is an unknown quantity at this point 
Solved Threads: 0
shubhang shubhang is offline Offline
Light Poster

pls clear doubt

 
0
  #1
Dec 15th, 2008
Hi!
I wanted to know in simple language what is an API (application program interface).
I have made an address book program so can I call it an API.
Help will be highly appreciated.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: pls clear doubt

 
0
  #2
Dec 15th, 2008
Try this link.
And if you still cannot figure it out then let us know.
Last edited by stephen84s; Dec 15th, 2008 at 9:57 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 25
Reputation: shubhang is an unknown quantity at this point 
Solved Threads: 0
shubhang shubhang is offline Offline
Light Poster

Re: pls clear doubt

 
0
  #3
Dec 15th, 2008
Sir,
the letmegoogleit.com was excellent.
thanks for telling me that I can do that.
Originally Posted by shubhang View Post
I have made an address book program so can I call it an API.
but,I have found this but it still doesnt clear my doubt

the asking program uses a set of standardized requests, called application programming interfaces (API), that have been defined for the program being called upon. Almost every application depends on the APIs of the underlying operating system to perform such basic functions as accessing the file system. In essence, a program's API defines the proper way for a developer to request services from that program.

Does this mean that if i use methods like nextToken() from StringTokenizer,or I can call my class an API as someone can use it in his program.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 823
Reputation: verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough 
Solved Threads: 73
verruckt24's Avatar
verruckt24 verruckt24 is offline Offline
Practically a Posting Shark

Re: pls clear doubt

 
0
  #4
Dec 15th, 2008
IT depends on if your program has something to offer for others. An API offers an abstraction for some low-level tasks while doing some higher level tasks. Let me give you an example of address book itself (since your program dela with it) An address book has contacts which can be created, edited and deleted. Further more it is also supposed to offer functionality such as searching of a contact. Now if you write a collection of classes that provide this basic functionality like say you store contact's using a List and implement the create, edit, delete and search functions. Meaning you provide the most general address book operations through your classes so that developers, using your library, might be able to implement an AddressBook feature without worrying about the details of create, edit and delete (they just call your functions) then you might be able to say that you have provided an API for an AddressBook.

Now deciding whether your program is an API or not is pretty straight forward.
Last edited by verruckt24; Dec 15th, 2008 at 10:49 am.
Get up every morning and take a look at the Forbes' list of richest people. If your name doesn't appear.... GET TO WORK !!!
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 25
Reputation: shubhang is an unknown quantity at this point 
Solved Threads: 0
shubhang shubhang is offline Offline
Light Poster

Re: pls clear doubt

 
0
  #5
Dec 15th, 2008
Thanks a million sir.
Shubhang Sharma,
Goa.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 823
Reputation: verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough verruckt24 is a jewel in the rough 
Solved Threads: 73
verruckt24's Avatar
verruckt24 verruckt24 is offline Offline
Practically a Posting Shark

Re: pls clear doubt

 
0
  #6
Dec 16th, 2008
If your problem has been solved, please mark the thread as solved. So that anyone else visiting is aware of the fact.
Get up every morning and take a look at the Forbes' list of richest people. If your name doesn't appear.... GET TO WORK !!!
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC