packages

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

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 classes
    2 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.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion