+ 7
What is a Library?
I seen discussions about how language has different libraries. So practically what is a library? https://www.sololearn.com/discuss/1701716/?ref=app
8 odpowiedzi
+ 13
For Example: If you want some sorting algorithms in your programme.
exmp java provides built in library.
It is therefore made in advance because you make it by yourself. So many of your time is waste.
If you want some sorting in your programee So use import java.util.Arrays
import = keyword for use any built in libraries
java = package
util = subPackage
Arrays = librarie for provied sorting algorithem and many more .
+ 8
you can import libraries using import statement (placed on top of the code)
+ 7
A library is just a collection of code and functions that someone put together to accomplish some task that is typically outside the scope of what the language can easily do without it.
In the case of Java, like in your example, one might write a library that provides functions to build a graphical user interface (gui) on a certain platform, like android or windows. This library would include tools to make windows, buttons, labels, etc.
I hope this helps! Good luck!
+ 7
Library is a collection of pre-builded functions/files/class or variables.
+ 5
Libraries can sometimes be larger than the standard language.
+ 2
A libary is extension for the language, it's give you more abilities and prepared functions that will make your life easier.
And you will not have to do the hard work twice(-;
+ 1
Libraries are lots and lots of functions for you to use
- 1
Java