Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these methods is used to obtain value of invoking object as a long?
  2. A.
    long value()
    B.
    long longValue()
    C.
    Long longvalue()
    D.
    Long Longvalue()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    long longValue() is used to obtain value of invoking object as a long.


Be The First To Comment