Computer Science, asked by Madhav8095, 1 year ago

Write short notes on Namespaces.

Answers

Answered by Michael12
0

Hello!!

___________________________

Ans. Namespace. In computing, a namespace is a set of symbols that are used to organize objects of various kinds, so that these objects may be referred to by name. In Java, a namespace ensures that all the identifiers within it must have unique names so that they can be easily identified.


Anonymous: hiii
Michael12: hlo
Michael12: bro
Michael12: hyyyyyyy
Answered by zelenazhaovaqueen
1

Namespace is primarily used in programming languages where the same name may be used for different objects. It is created to group together those names that might be repeated elsewhere within the same or interlinked programs, objects and elements.

For example, an XML namespace consists of element types and attribute names. Each of the names within that namespace is only related/linked to that namespace. The name is uniquely identified by the namespace identifier ahead of the name. For example Namespace1_ John and Namespace2_John are same names but within different namespaces. OR A namespace is used to uniquely identify one or more names from other similar names of different objects, groups or the namespace in general. Namespace makes it possible to distinguish objects with similar names but different origins. In XML, a namespace is a collection of element type and attribute names, each of which which can be identified by the unique namespace to which they belong.

Namespace is also known as name scope.

---------------------------------------------------------------------------------------------------------

hope it helps

Similar questions