What is pakages | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

What is pakages

17th Mar 2017, 4:31 PM
SaNtO SaNdY☣
SaNtO SaNdY☣ - avatar
3 Answers
+ 3
Think of it as a folder that contains all the classes.
17th Mar 2017, 5:45 PM
Meharban Singh
Meharban Singh - avatar
+ 1
Collection of related classes in a folder or compressed archive.
17th Mar 2017, 5:48 PM
hdo
hdo - avatar
+ 1
Typically, Java classes are combined in packages. Packages allow you to organize classes logically into sets. By default, java already has a number of built-in packages, for example, java.lang, java.util, java.io, etc. In addition, packages can have nested packages. The organization of classes in the form of packages avoids the conflict of names between classes. After all, there are often situations when developers call their classes the same name. Belonging to the package makes it possible to guarantee unambiguous names
5th Aug 2018, 1:14 PM
Виктор Шиман
Виктор Шиман - avatar