What is Package in Java ?

#1
A Package is a namespace that contains a set of related classes and interfaces.

Basic Packages :

java.lang : Fundamental classes are presnt in this package.
java.io : classes for reading and writing (input and output) are presnt in this package.
 
#4
A Package is a namespace that sorts out an arrangement of related classes and interfaces. Adroitly you can consider bundles being like diverse organizers on your PC. You may keep HTML pages in a single organizer, pictures in another, and contents or applications in yet another.
 
Top