Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these method of class String is used to obtain length of String object?
  2. A.
    get()
    B.
    Sizeof()
    C.
    lengthof()
    D.
    length()

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    Method length() of string class is used to get the length of the object which invoked method length().


Be The First To Comment