Home » JAVA Programming » Strings » Question
  1. Which of this method of class String is used to obtain a length of String object?
    1. Sizeof()
    2. length()
    3. get()
    4. lengthof()
    5. None of these
Correct Option: B

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



Your comments will be displayed only after manual approval.