Comments

: 1.what is Packages?: 2.what is its Real use?: 3.What is the difference between package namespace and gloabal namespace?: : Please explain those with suitable example: 1 Packages are collections of classes with a certain theme or connection. Example: AWT: a package with user interface classes2 Provide structure in the list of classes. Easy to install new classes, and manage classes.3 Package namespace is only defined within 1 package. Global namespace is global for the JVM.