Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is an API call  RSS feed

 
Amruta Agarwal
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.
 
Henry Wong
author
Sheriff
Posts: 23283
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor 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
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16028
87
Android IntelliJ IDE Java Scala Spring
  • 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?
 
Matt Fielder
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!