Home / ECE / Microprocessors :: Discussion

Discussion :: Microprocessors

  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?

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

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    All these are correct for Java variables.


Be The First To Comment