Which of these methods of class String is used to check whether a given string starts with a particular substring or not?

Which of these methods of class String is used to check whether a given string starts with a particular substring or not? Correct Answer StartsWith()

The StartsWith() determines whether a substring exists at the beginning of the string.

Related Questions

Which of these methods of class String is used to separate a substring from a String object?
Which of these methods of class String is used to extract a substring from a String object?
In Python, how can you check if a string starts with a specific substring?
Which of these methods of class StringBuffer is used to extract a substring from a String object?