Computer Science, asked by boss00719, 5 months ago

what is identifer? list the rules for naming an ideentifer​

Answers

Answered by Missmanu2612
8

Answer:

  • In computer languages, identifiers are tokens (also called symbols) which name the language entities. Some of the kinds of entities an identifier might denote include variables, types, labels, subroutines, and packages.

Here is the syntax for valid Java identifiers:

  • Each identifier must have at least one character.
  • The first character must be picked from: alpha, underscore, or dollar sign. The first character can not be a digit.
  • The rest of the characters (besides the first) can be from: alpha, digit, underscore, or dollar sign.

The general rules for constructing names for variables (unique identifiers) are:

  • Names can contain letters, digits and underscores.
  • Names must begin with a letter or an underscore (_)
  • Names are case sensitive ( myVar and myvar are different variables)

Brainliest .. !!

Answered by bbhgiri14
13

Answer:

There are some rules you have to follow for naming identifiers: The first character of the identifier must be a letter of the alphabet (upper or lowercase) or an underscore ('_'). The rest of the identifier name can consist of letters (upper or lowercase), underscores ('_') or digits (0-9).

Explanation:

thank me

Similar questions