Identifiers and Variables
Identifiers are the names that identify the elements such as classes, methods, and variables in a program. All identifiers must obey the following rules: An identifier is a sequence of characters that consists of letters, digits, underscores (_), and dollar signs ($). An identifier must start with a letter, an underscore (_), or a dollar sign ($). It cannot start with a digit. An identifier cannot be a reserved word. (See Appendix A for a list of reserved words.) An identifier cannot be true, false, or null. An identifier can be of any length. For example, $2, ComputeArea, area, radius, and print are legal identifiers, whereas 2A and d+4 are not because they do not follow the rules. Since Java is case sensitive, area, Area, and AREA are all different identifiers. Variables are used to store values that may be changed in the program. The variable declaration tells the compiler to allocate appropriate memory space for the variable based on its data type. A v...