wood burning stoves 2.0*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "namespace" Watch "namespace" New topic


abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 606

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

import java.io.*;
Joe Ess

Joined: Oct 29, 2001
Posts: 8705

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

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: namespace
Similar Threads
Namespaces question.....
Problem with JBoss 4.0.3
Could not locate datasource in JBOSS 4.23 GA jndi.
Confused in XML Schema.