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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
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: 8935
    
    9

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