a) StartsWith()
b) EndsWith()
c) Starts()
d) Ends()
1 thought on “Which of these methods of class String is used to check whether a given string starts with a particular substring or not?”
Leave a Comment
You must be logged in to post a comment.
a) StartsWith()
b) EndsWith()
c) Starts()
d) Ends()
You must be logged in to post a comment.
a
Explanation: The StartsWith() determines whether a substring exists at the beginning of the string.