0
please... help me !!! what is the API in java ??
5 Réponses
+ 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.
+ 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.
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
0
( you only need to import them - eg. import java.Math;)
0
so, API is when you import the library