Which of these method of class String is used to obtain length of String object?
A. get()
B. Sizeof()
C. Lengthof()
D. Length()
Answer:A
Which of these method of class String is used to obtain length of String object?
A. get() B. Sizeof() C. Lengthof() D. Length()
Explanation: Method Length() of string class is used to get the length of the object which invoked the method Length().