It's not a secret anymore!
The moose likes Beginning Java and the fly likes namespace Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "namespace" Watch "namespace" New topic


abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 635

May someone explain about namespace in JAVA?And why is it used?

May you show usage of namesapce by a simple code in JAVA?
Anubhav Anand
Ranch Hand

Joined: May 18, 2007
Posts: 341

Namespaces are inherently not existent in Java. What we have is imports.

For importing the classes in IO package of Java you may say like

Joe Ess

Joined: Oct 29, 2001
Posts: 9169

Typing "namespace java" into Google turned up several interesting articles, including this page from the Java in a Nutshell book.

[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: namespace
It's not a secret anymore!