What is the difference between a Java API and a library?

前端 未结 10 1543
面向向阳花
面向向阳花 2021-01-31 21:10

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

10条回答
  •  日久生厌
    2021-01-31 21:50

    api is the set of classes that require for the development and library is part of api for ex.suppose you need the communication api but you need only serial communication so the set of serial communication classes is library and the set of communication classes is api

提交回复
热议问题