Examveda

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

D. It compiles a regular expression

Answer: Option C


This Question Belongs to Java Program >> Regular Expressions In Java

Join The Discussion

Related Questions on Regular Expressions in Java