File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "namespace" Watch "namespace" New topic
Author

namespace

abalfazl hossein
Ranch Hand

Joined: Sep 06, 2007
Posts: 635
Hi!

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
Bartender

Joined: Oct 29, 2001
Posts: 8866
    
    8

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]
 
Consider Paul's rocket mass heater.
 
subject: namespace