a) get()
b) Sizeof()
c) Lengthof()
d) Length()
1 thought on “Which of these method of class String is used to obtain length of String object?”
Leave a Comment
You must be logged in to post a comment.
a) get()
b) Sizeof()
c) Lengthof()
d) Length()
You must be logged in to post a comment.
d
Explanation: Method Length() of string class is used to get the length of the object which invoked the method Length().