Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. An expression involving byte, int, and literal numbers is promoted to which of these?
  2. A.
    int
    B.
    long
    C.
    byte
    D.
    float

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    An expression involving bytes, ints, shorts, literal numbers, the entire expression is promoted to int before any calculation is done.


Be The First To Comment