please... help me !!! what is the API in java ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

please... help me !!! what is the API in java ??

12th Aug 2016, 3:51 PM
Kamdem Dhalson
Kamdem Dhalson - avatar
5 Answers
+ 1
they are like tools. if you wanna to make a house you don't need to invent hammer, paint, bricks. it's already there and they call ALL OF it API.
12th Aug 2016, 5:46 PM
Emrullah ÖZALP
Emrullah ÖZALP - avatar
+ 1
APIs (Application Programming Interface) are various packages in JAVA, which have some kind of functionalities. E.g. for reading user input you use Scanner. To use Scanner you need to import the scanner class from util package. This set of packages are called APIs.
13th Aug 2016, 3:31 AM
Varun Negi
Varun Negi - avatar
0
its a set of classes that help you program. eg Math class contains sum, min, max, abs methods that you can use right away and you dont have to build these from scratch
12th Aug 2016, 5:00 PM
Martin Soukup
Martin Soukup - avatar
0
( you only need to import them - eg. import java.Math;)
12th Aug 2016, 5:01 PM
Martin Soukup
Martin Soukup - avatar
0
so, API is when you import the library
13th Aug 2016, 5:46 AM
Kamdem Dhalson
Kamdem Dhalson - avatar