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? I can connect to a class like System without using any API here, so why we say as J2SE API rather than J2SE packages?
I know that an API is called a set of functions used to call
Share
Straight from Wikipedia:
Java contains many libraries in those packages (Swing, etc.), and the API is the interface by which we request services (perform actions, etc.).