Thursday, March 17, 2011

Sore Throat Lots Of Phlegm Ear Infection



An identifier is a name that represents a variable, method, class, interface of a program.

Syntax of a Java identifier

to form an identifier, we must consider the following rules:

1) must consist of only letters, digits or other characters allowed (may be the dollar sign: $ or the underscore character: _ ).

2) The first character must be a letter, dollar sign or underscore character.

3) You can use a Java reserved word to denote an identifier.

4) To capitalize a letter Java is different from that letter in lower case, for example, the ID number is different ID NUMBER .


Valid IDs

number
$ variable1
another $ patient _el4alumno




invalid identifiers

2alumno
/ variable sum value%

0 comments:

Post a Comment