|
Is the following declaration correct? int answer; A good answer might be:
Yes-- assuming that |
Names for VariablesThe programmer (you) picks a name for each variable in a program. There are several things in programs (including variables) that need to be named. Such a programmer-picked name is called an identifier. Here are the rules for choosing an identifier:
A reserved word is a word which has a predefined meaning in Java.
For example |
QUESTION 6:Which of the following variable declarations are correct? Click Here after you have answered the questionlong good-by ; short shrift = 0; double bubble = 0, toil= 9, trouble = 8 byte the bullet ; int double; char thisMustBeTooLong ; int 8ball; |