Which of these methods of class String is used to check whether a given string starts with a particular substring or not?
A. StartsWith()
B. EndsWith()
C. Starts()
D. Ends()
Answer:A
Which of these methods of class String is used to check whether a given string starts with a particular substring or not?
A. StartsWith() B. EndsWith() C. Starts() D. Ends()
Explanation: The StartsWith() determines whether a substring exists at the beginning of the string.