Q14
What is the purpose of the `matches()` method in Java regular expressions?
A.
It splits the input into an array of substrings
B.
It replaces the matched text with a new text
C.
It searches for the first occurrence of the pattern
D.
It checks if the entire input sequence matches the pattern
AnswerAnswer: Option D
Solution
Answer: Option D
No explanation is given for this question Let's Discuss on Board