Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

namespace

 
abalfazl hossein
Ranch Hand
Posts: 635
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 341
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9319
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Typing "namespace java" into Google turned up several interesting articles, including this page from the Java in a Nutshell book.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic