Home Segments Top Top Previous Next

58: Mainline

A Java identifier is a name consisting of letters and digits, the first of which must be a letter. The underscore, _, and the dollar sign, $, count as letters.

Most Java programmers do not use the underscore when they run words together to produce long identifiers. Instead, they initiate the first word with a lowercase character and each interior word with an uppercase character, as in movieRating. You should adhere to this convention; otherwise, other programmers will find your programs difficult to understand.