I know that an API is called a set of functions used to call something, and a library is a collection of classes, but what is actually API in package like java.lang
java.lang
package contians limited number of classes and interfaces, where as an API contains "MORE" classes and interfaces.but it is not a java interface.