Programming MisconceptionsHomeMisconceptionsConceptsLanguagesTextbooksContributorsAbout
HomeConcepts
Name

Name

Names are used to denote constructs such as variables, classes, types, and members.

Related concepts:  VariableTypeClassMember

Closest Wikipedia entry:  Identifier: In computer science

Authoritative Definition

Wikipedia does not necessarily offer the best fitting definition of a concept. The exact meaning we attribute to the concept of Name is based on principled authoritative sources such as:

Compilers: Principles, Techniques, and Tools - Section 1.6

Misconceptions about Name
8 documented Misconceptions

Any LanguageJavaJavaScriptPythonScratch
Check Yourself
Misconception
NamedTypeParameter — Java
To instantiate a generic type, for each type parameter one has to specify both the name and the type
Misconception
NoReservedWords — Java
Every sequence of letters and digits starting with a letter can be used as an identifier
Misconception
ObjectsMustBeNamed — Java
A variable is needed to instantiate an object
Misconception
UnqualifiedNamesMustDiffer — Java
The unqualified names of different classes must be different
Misconception
FunctionsMustBeNamed — JavaScript
Every function definition requires an associated name
Misconception
NoReservedWords — Python
Every sequence of letters and digits starting with a letter or an underscore can be used as an identifier
Misconception
ObjectsMustBeNamed — Python
A variable is needed to instantiate an object
Misconception
StringLiteralNoObject — Python
One needs to call str to instantiate a str object from a string literal

Find Misconceptions by...

Concept
Programming Language
Notional Machine
Textbook

About

About This Site
Structure and Content of the Inventory
Contributors