1.

Consider the following statements about Java variables 1. Java variable must start with a letter or underscore or dollor sign.2. Java variable can not start with a digit.3. After the first character the variable can have any combination of letters or numbers.4. Capitalization of letters must be consistent. Which of the above are correct?

A. All
B. 1, 2 and 3 only
C. 2, 3, 4 only
D. 1, 2 and 4 only
Answer» B. 1, 2 and 3 only


Discussion

No Comment Found

Related MCQs