The full form of API is Application Programming Interface. It is a document which gives you the list of all the packages, classes, and interfaces, along with their fields and methods.
Using these API’s, the programmer can know how to use the methods, fields, classes, interfaces provided by Java libraries.