Computer Science, asked by foxee2005, 11 months ago

what are identifiers . what is the identifier forming rule of java​

Answers

Answered by jyotshna37
25

Answer:

Identifiers are those which are used to name variables..

RULES:

1.It should start with a dollar sign ,underscore.

2. The digits can be of range from 0-9, but should not start with numbers.

3.letters can be a-z or A-Z.

Answered by deepakkumar9254
12

What are Identifiers?

Identifiers are the names given to identify different building blocks of a program such as class, methods, etc.

Rules for forming identifiers in Java :

1. They must not begin with a digit.

2. They can be of any length.

(It means that they can be of any size long or short).

3. Java is case sensitive.

(i.e. upper case letters and lower case letters are treated differently).

4. Identifiers can have alphabets, digits, dollar sign and underscore characters.

Similar questions