Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

a) get()
b) Sizeof()
c) lengthof()
d) length()

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

Join The Discussion