Which of these methods of class String is used to check whether a substring exists at the beginning of the particular string?

a) StartsWith()
b) EndsWith()
c) Starts()
d) ends()

1 thought on “Which of these methods of class String is used to check whether a substring exists at the beginning of the particular string?”

  1. a
    Explanation: Method startswith() of string class is used to check whether a substring exists in the beginning of string or not.

Leave a Comment