What is the different between a Package and Library in OOPSo

What is the different between a Package and Library in OOP?

Solution

A library is a set of classes with methods that are planned for utilize by other programs.

Example:

Math library.

Libraries are prearranged into packages.

Example:

java.lang package includes the Math library among allot of others.

A library can have only one class but that class typically has many methods that are used by lots of other programmers.

What is the different between a Package and Library in OOP?SolutionA library is a set of classes with methods that are planned for utilize by other programs. Ex

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site