+ 3
What is a package?
8 Respostas
+ 4
package is like a container that contain one or more class .
+ 3
Packages are what organize Java for instance the files can be stored in "compressed" files known as JAR files (These files load faster in groups but not by themselves).
+ 3
A package are multiple classes "packaged" together in the form of a JAR file.
The default 'access modifier' will let other classes in the same package/JAR have access to the method or variable it's prefixing.
+ 2
So u mean this JAR files are packages? And do they contain many Java programs in them?
So when default access modifier is used, does that mean that classes from other programs (but the same package) can access that member?
0
Multiple JAR files, they can store ALOT. From my experiences, they should be programmed to not access each other unless you put them in the same file.
0
A java package is a group of similar types of classes, interfaces and sub-packages
0
packages are used to stay away from ambiguities and saves time
0
package are like a container which contain
classes and their method.
example-java.util package
java.io
and awt package etc.
it can be of two type
>>system defined
>>>user defined