Microprocessors

Q1: 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

ANS:A - All

All these are correct for Java variables.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.