1
visibility

Which of these method of class String is used to obtain length of String object?

  • A

    get()

  • B

    Sizeof()

  • C

    lengthof()

  • D

    length()

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