Vidyalelo
Java Programming · Q29

Java Regular Expressions

Programming · Java Programming · question 29

Q29

What is the purpose of the `reset()` method in Java regular expressions?

A.
It counts the number of matches
B.
It checks if a string matches the pattern
C.
It resets the matcher
Answer
D.
It compiles a regular expression

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board