answersLogoWhite

0


Best Answer

A library is a set of classes or modules with methods that are intended for use by other programs. An example is the Math library.

Libraries are organised into packages. For example, the java.lang package includes the Math library among alot of others.

As a side note, a library can be just one class, but that class usually has multiple methods/modules that are used by many other Java programmers.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between library and package in java world?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference between an inventor and a scientist?

a inventor invents things but a scientist finds out what things happen in the world


What best describes a major difference between science and technology?

Science focuses on gaining knowledge about the natural world, whereas technology focuses on creating new products or processes for human use.


What is the difference between dynamic link library and shared library?

Static libraries are compiled into the program itself, shared libraries are compiled separately and referenced by the program. This enables the program to be much smaller, but requires the shared libraries be available to run.


What is the Difference between header file and package?

A package is just a mechanism for grouping objects, it is very similar to grouping items within a folder or directory on a file system. A class is found within a package, but this does not have an impact on the class' behavior (review the "package" access level for a slight exception). An interface, however, is a .java file that is used (implemented) by another class to tell the outside world that it conforms to a certain specification. For example, you might have a "Runnable" interface that has a "run()" method in it, by having a class that is "Runnable" (implements Runnable) anyone using that class knows that it must have a "run()" method defined. This is used when you have several different classes that have the same interface. Interfaces have more in common with abstract classes than they do with packages. An interface, by definition, cannot have any implemented methods; an abstract class, in contrast, can define some methods and leave some methods to be implemented by a subclass. Also, a class can implement many interfaces, but can only extend one (abstract) class. Answer by Sahe Alam Ansari, BCA. Nepal bhairahawa. Email: mrsahealam@gmail.com


Difference of science and technology?

Technology is how people change the world around them to meet their needs, and science is the study of the natural world to understand how it functions.

Related questions

What is difference between usage world and subject world?

What is difference between usage world and subject world?Read more: What_is_difference_between_usage_world_and_subject_world


Is there a difference between international politics and world politics?

what is the difference between global politics and international politics


What is the difference between apple and world?

well the difference is that an apple is an fruits and the world is what you live in.


What is the difference congress and ashurbanipals libraries?

The Library of Congress is Americas. The Ashurbanipal is Ancient Mesopotamia's. The Library of Congress is the Largest Library in the world. Ancient Mesopotamia isn't. The Library of Congress is more up to date then the Ashurbanipal Library. The Library of Congress has photos. Ashurbanipal Library doesn't. The Library of Congress was made for congress the Ashurbanipal Library wasn't.


Builders of largest library in 650 bc?

The library at Alexandria, Egypt was founded between 283 and 229 BCE by the Ptolemys. It was the largest and most significant library of the ancient world.


What is the difference between network and internet?

AnswerThe difference between the two is that internet is the world wide web and network is local.


Is there a difference between world cities and global cities and if so what is the difference?

there aren't any


What is the difference between shauun white snowboarding world tour and Shaun White snowboarding?

the difference is a "u" and world tour.


Is the Library of Congress the largest library in the world?

Yes. The Library of Congress is the largest library in the world.


What is the difference between war and world war?

world war is war between more then 2 countrys and war is between only 2


What is the difference between rock band and guitarhero world tour?

I don't see a big difference.


What is difference between the highest and lowest elevations in the world?

20,602