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

What are NameSpaces

 
sanjeev kb
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Please give me brief definition and explanation of namespaces
Regards,
Sanjeev
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is an area where the name of a class or variable is not obscure (can not be mistaken for another one with the SAME name).
In java, class namespaces are packages. You can not have two classes with the SAME name in the same package. You CAN have two packages with the same name in different packages because they are in different namespaces.
ex:
java.util.Date
java.sql.Date
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic