Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

What is an API call

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The term API call is what I do not seem to understand.
Can somebody explain.

If I am calling a function which is one of the java packages like math.
e.g like round() or ceil() then its not an API call.

Can I make a API call from a java class.

Can you give some example about the API call concept.
 
author
Posts: 23834
140
jQuery Eclipse IDE Firefox Browser VI Editor C++ Chrome Java Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For an understanding of certain acronyms (like API), it is probably a good idea to use the general forums... Moving this to the Java in General (beginner) forum.

Henry
 
Java Cowboy
Posts: 16084
88
Android Scala IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
API means Application Programming Interface. An API is a collection of classes, interfaces, methods etc. that a library makes available for you to write an application with. An "API call" just means calling a method that is in the API of a certain library.

The standard Java library contains thousands of classes, interfaces and methods. Whenever you call a method in the standard Java API, that's an "API call".
 
Amruta Agarwal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.

Would it mean that calling functions like round() or ceil() belonging to the math package from a java program can be described as an API call?
 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.
 
Rancher
Posts: 43009
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, with the library involved being the standard Java class libraries.
 
Amruta Agarwal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!