What is exact difference between an API(Application Programming Interface) and a Package?
What is exact difference between an API(Application Programming Interface) and a Package?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I suspect you’re getting confused because of something like this. This is the API and contains 0 code. It describes how the packages should be laid out, but they really are different.
A package is how your organize and group your classes together. For example java.awt.datatransfer.Clipboard has a package of java.awt.datatransfer.
An API is just a specification. It describes how something should work.
Hope that helps.