+ 3

What is a package?

5th Sep 2016, 2:27 PM
Bhavana
8 Answers
+ 4
package is like a container that contain one or more class .
6th Sep 2016, 1:20 PM
adarsh
+ 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).
5th Sep 2016, 2:36 PM
Kevin McMinn
Kevin McMinn - avatar
+ 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.
22nd Sep 2016, 2:52 AM
Cory Robinson
Cory Robinson - avatar
+ 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?
5th Sep 2016, 3:13 PM
Bhavana
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.
6th Sep 2016, 12:31 AM
Kevin McMinn
Kevin McMinn - avatar
0
A java package is a group of similar types of classes, interfaces and sub-packages
21st Sep 2016, 4:37 AM
Neeraj Jangra
Neeraj Jangra - avatar
0
packages are used to stay away from ambiguities and saves time
5th Oct 2016, 3:57 PM
Ameya
Ameya - avatar
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
27th Oct 2016, 9:14 AM
abhijit kushwaha
abhijit kushwaha - avatar